-
Notifications
You must be signed in to change notification settings - Fork 1.2k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
[billingbenefits] Update billingbenefits projects to use snippets ext…
…raction
- Loading branch information
1 parent
72238af
commit 096b3d3
Showing
4 changed files
with
69 additions
and
40 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
25 changes: 25 additions & 0 deletions
25
sdk/billingbenefits/arm-billingbenefits/test/snippets.spec.ts
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,25 @@ | ||
// Copyright (c) Microsoft Corporation. | ||
// Licensed under the MIT License. | ||
|
||
import { BillingBenefitsRP } from "../src/index.js"; | ||
import { DefaultAzureCredential, InteractiveBrowserCredential } from "@azure/identity"; | ||
import { setLogLevel } from "@azure/logger"; | ||
import { describe, it } from "vitest"; | ||
|
||
describe("snippets", () => { | ||
it("ReadmeSampleCreateClient_Node", async () => { | ||
const client = new BillingBenefitsRP(new DefaultAzureCredential()); | ||
}); | ||
|
||
it("ReadmeSampleCreateClient_Browser", async () => { | ||
const credential = new InteractiveBrowserCredential({ | ||
tenantId: "<YOUR_TENANT_ID>", | ||
clientId: "<YOUR_CLIENT_ID>", | ||
}); | ||
const client = new BillingBenefitsRP(credential); | ||
}); | ||
|
||
it("SetLogLevel", async () => { | ||
setLogLevel("info"); | ||
}); | ||
}); |