diff --git a/sdk/servicebus/service-bus/package.json b/sdk/servicebus/service-bus/package.json index 4e0ba9dc87fb..02c123d81c1c 100644 --- a/sdk/servicebus/service-bus/package.json +++ b/sdk/servicebus/service-bus/package.json @@ -20,7 +20,6 @@ "module": "dist-esm/src/index.js", "browser": { "./dist/index.js": "./browser/service-bus.js", - "./dist-esm/test/utils/aadUtils.js": "./dist-esm/test/utils/aadUtils.browser.js", "./dist-esm/src/util/crypto.js": "./dist-esm/src/util/crypto.browser.js", "./dist-esm/src/util/parseUrl.js": "./dist-esm/src/util/parseUrl.browser.js", "buffer": "buffer", diff --git a/sdk/servicebus/service-bus/test/serviceBusClient.spec.ts b/sdk/servicebus/service-bus/test/serviceBusClient.spec.ts index 98d46e947670..205bff52802b 100644 --- a/sdk/servicebus/service-bus/test/serviceBusClient.spec.ts +++ b/sdk/servicebus/service-bus/test/serviceBusClient.spec.ts @@ -40,7 +40,7 @@ import { EnvVarNames, getEnvVars, isNode } from "../test/utils/envVarUtils"; import * as dotenv from "dotenv"; dotenv.config(); -import { EnvironmentCredential } from "../test/utils/aadUtils"; +import { EnvironmentCredential } from "@azure/identity"; describe("Create ServiceBusClient and Queue/Topic/Subscription Clients #RunInBrowser", function(): void { let sbClient: ServiceBusClient; diff --git a/sdk/servicebus/service-bus/test/streamingReceiver.spec.ts b/sdk/servicebus/service-bus/test/streamingReceiver.spec.ts index ba665a8bc57a..986c3307c727 100644 --- a/sdk/servicebus/service-bus/test/streamingReceiver.spec.ts +++ b/sdk/servicebus/service-bus/test/streamingReceiver.spec.ts @@ -31,7 +31,7 @@ import { StreamingReceiver } from "../src/core/streamingReceiver"; import { AccessToken, parseConnectionString, TokenCredential } from "@azure/core-amqp"; import { getEnvVars, EnvVarNames } from "./utils/envVarUtils"; -import { EnvironmentCredential } from "./utils/aadUtils"; +import { EnvironmentCredential } from "@azure/identity"; const should = chai.should(); chai.use(chaiAsPromised); diff --git a/sdk/servicebus/service-bus/test/utils/aadUtils.browser.ts b/sdk/servicebus/service-bus/test/utils/aadUtils.browser.ts deleted file mode 100644 index 4e1d49987df4..000000000000 --- a/sdk/servicebus/service-bus/test/utils/aadUtils.browser.ts +++ /dev/null @@ -1,4 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. - -export const EnvironmentCredential = 0; diff --git a/sdk/servicebus/service-bus/test/utils/aadUtils.ts b/sdk/servicebus/service-bus/test/utils/aadUtils.ts deleted file mode 100644 index 080735b9cefb..000000000000 --- a/sdk/servicebus/service-bus/test/utils/aadUtils.ts +++ /dev/null @@ -1,4 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. - -export { EnvironmentCredential } from "@azure/identity";