chore: Use relative paths for assert imports to avoid test flakes (#19427)

Tests occasionally fail if we get a bad gateway attempting to fetch the
assertion module
This commit is contained in:
Matt Mastracci 2023-06-08 12:10:37 -06:00 committed by GitHub
parent 55f0150854
commit db9482d688
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
9 changed files with 14 additions and 8 deletions

View file

@ -1,5 +1,5 @@
import { addNumbers } from "./foo.ts";
import { assertEquals } from "https://deno.land/std@0.183.0/testing/asserts.ts";
import { assertEquals } from "../../../../../test_util/std/testing/asserts.ts";
Deno.test("addNumbers works", () => {
assertEquals(addNumbers(1, 2), 3);