From 773fc2685e59a3643d9fb150942cd758a6bc190f Mon Sep 17 00:00:00 2001 From: Matt Ellis Date: Tue, 3 Aug 2021 17:04:47 -0700 Subject: [PATCH] [EventGrid] Fix Test Compliation Errors (#16723) In #16700 we updated our tests to generate the key we used for testing by doing a base64 conversion of a fixed string so we didn't have something that looked like a key embeded in source which was upsetting some static analysis tools. This casues a build break in the min/max testing where `btoa` can't be found when building the test. Since we have the correct runtime behavior in the test to only call `btoa` when we are not in a node-context we simply reference the dom library to appease the compiler. --- .../eventgrid/test/public/generateSharedAccessSignature.spec.ts | 2 ++ 1 file changed, 2 insertions(+) diff --git a/sdk/eventgrid/eventgrid/test/public/generateSharedAccessSignature.spec.ts b/sdk/eventgrid/eventgrid/test/public/generateSharedAccessSignature.spec.ts index f273deb8e6ca..74037584c7bf 100644 --- a/sdk/eventgrid/eventgrid/test/public/generateSharedAccessSignature.spec.ts +++ b/sdk/eventgrid/eventgrid/test/public/generateSharedAccessSignature.spec.ts @@ -1,6 +1,8 @@ // Copyright (c) Microsoft Corporation. // Licensed under the MIT license. +/// + import { assert } from "chai"; import { AzureKeyCredential, generateSharedAccessSignature } from "../../src"; import { isNode } from "@azure/test-utils";