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