diff options
Diffstat (limited to 'cli/js/tests/internals_test.ts')
-rw-r--r-- | cli/js/tests/internals_test.ts | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/cli/js/tests/internals_test.ts b/cli/js/tests/internals_test.ts new file mode 100644 index 000000000..fb712707c --- /dev/null +++ b/cli/js/tests/internals_test.ts @@ -0,0 +1,10 @@ +// Copyright 2018-2020 the Deno authors. All rights reserved. MIT license. +import { unitTest, assert } from "./test_util.ts"; + +unitTest(function internalsExists(): void { + const { + stringifyArgs + // @ts-ignore TypeScript (as of 3.7) does not support indexing namespaces by symbol + } = Deno[Deno.symbols.internal]; + assert(!!stringifyArgs); +}); |