Skip to main content
Module

x/udd/search_test.ts

Update Deno Dependencies - update dependency urls to their latest published versions
Very Popular
Go to Latest
File
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);});