x/udd@0.7.3/search_test.ts

Update Deno Dependencies - update dependency urls to their latest published versions
GitHub Stars
204
Latest
import { assertEquals } from "./test_deps.ts";import { REGISTRIES } from "./registry.ts";import { importUrls } from "./search.ts";
Deno.test("denolandImports", () => { const expected = [ "https://deno.land/std@0.35.0/foo.ts", "https://deno.land/x/foo@0.35.0/foo.ts", ]; // const ts = ` // import { foo } from "${expected[0]}"; // import { bar } from "${expected[1]}"; // `; const ts = `import { foo } from "https://deno.land/std@0.35.0/foo.ts";import { bar } from "https://deno.land/x/foo@0.35.0/foo.ts";`;
const urls = importUrls(ts, REGISTRIES); urls.sort(); assertEquals(urls, expected);});