diff options
Diffstat (limited to 'cli/js/tests/location_test.ts')
-rw-r--r-- | cli/js/tests/location_test.ts | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/cli/js/tests/location_test.ts b/cli/js/tests/location_test.ts new file mode 100644 index 000000000..78ecb55b3 --- /dev/null +++ b/cli/js/tests/location_test.ts @@ -0,0 +1,7 @@ +// Copyright 2018-2020 the Deno authors. All rights reserved. MIT license. +import { unitTest, assert } from "./test_util.ts"; + +unitTest(function locationBasic(): void { + // location example: file:///Users/rld/src/deno/js/unit_tests.ts + assert(window.location.toString().endsWith("unit_tests.ts")); +}); |