diff options
author | Bartek IwaĆczuk <biwanczuk@gmail.com> | 2019-08-22 09:01:25 +0200 |
---|---|---|
committer | Ryan Dahl <ry@tinyclouds.org> | 2019-08-22 03:01:25 -0400 |
commit | 77a20ec1196f46d971e380b90f0c688e102f0287 (patch) | |
tree | 2d35e1d3ecaf7770beb945479aacdd4ae730d17b | |
parent | f88a5979585037668d10d5b575277996fef8c1bc (diff) |
use relative paths in test imports (denoland/deno_std#572)
Original: https://github.com/denoland/deno_std/commit/d7a837d599ca7d5c489d6c74b7bd42d22a3314eb
-rw-r--r-- | fmt/sprintf_test.ts | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/fmt/sprintf_test.ts b/fmt/sprintf_test.ts index 3eb2a3176..dbbdbb306 100644 --- a/fmt/sprintf_test.ts +++ b/fmt/sprintf_test.ts @@ -1,7 +1,7 @@ import { sprintf } from "./sprintf.ts"; -import { assertEquals } from "https://deno.land/std/testing/asserts.ts"; -import { test, runTests } from "https://deno.land/std/testing/mod.ts"; +import { assertEquals } from "../testing/asserts.ts"; +import { test, runIfMain } from "../testing/mod.ts"; let S = sprintf; @@ -667,4 +667,4 @@ test(function testErrors(): void { assertEquals(S("%.[5]*f"), "%!(BAD INDEX)"); }); -runTests(); +runIfMain(import.meta); |