Skip to content

Commit

Permalink
[EventGrid] Fix Test Compliation Errors (#16723)
Browse files Browse the repository at this point in the history
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.
  • Loading branch information
ellismg authored Aug 4, 2021
1 parent f94b608 commit 773fc26
Showing 1 changed file with 2 additions and 0 deletions.
Original file line number Diff line number Diff line change
@@ -1,6 +1,8 @@
// Copyright (c) Microsoft Corporation.
// Licensed under the MIT license.

/// <reference lib="dom"/>

import { assert } from "chai";
import { AzureKeyCredential, generateSharedAccessSignature } from "../../src";
import { isNode } from "@azure/test-utils";
Expand Down

0 comments on commit 773fc26

Please sign in to comment.