mirror of
https://github.com/hanzoai/azure-sdk-for-js.git
synced 2026-10-30 19:51:51 +00:00
https://github.com/Azure/azure-sdk-for-js/issues/32184 @azure/arm-signalr @azure/arm-servicemap @azure/arm-servicelinker @azure/arm-servicefabricmesh @azure/arm-servicefabricmanagedclusters @azure/arm-securitydevops
28 lines
969 B
TypeScript
28 lines
969 B
TypeScript
// Copyright (c) Microsoft Corporation.
|
|
// Licensed under the MIT License.
|
|
|
|
import { MicrosoftSecurityDevOps } 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 subscriptionId = "00000000-0000-0000-0000-000000000000";
|
|
const client = new MicrosoftSecurityDevOps(new DefaultAzureCredential(), subscriptionId);
|
|
});
|
|
|
|
it("ReadmeSampleCreateClient_Browser", async () => {
|
|
const subscriptionId = "00000000-0000-0000-0000-000000000000";
|
|
const credential = new InteractiveBrowserCredential({
|
|
tenantId: "<YOUR_TENANT_ID>",
|
|
clientId: "<YOUR_CLIENT_ID>",
|
|
});
|
|
const client = new MicrosoftSecurityDevOps(credential, subscriptionId);
|
|
});
|
|
|
|
it("SetLogLevel", async () => {
|
|
setLogLevel("info");
|
|
});
|
|
});
|