deno.land / x / servest@v1.3.4 / _util_test.ts

نووسراو ببینە
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
// Copyright 2019-2020 Yusuke Sakurai. All rights reserved. MIT license.import { assertEquals } from "./vendor/https/deno.land/std/testing/asserts.ts";import { pathResolver } from "./_util.ts";import { group } from "./_test_util.ts";
group("pathResolver", (t) => { [ ["file:///src/deno/index.js", "./other.js", "/src/deno/other.js"], ["file:///src/deno/index.js", "../other.js", "/src/other.js"], ].forEach(([base, path, exp]) => { t.test(`${base} + ${path}`, () => { const u = pathResolver({ url: base, main: false })(path); assertEquals(u, exp); }); });});
servest

Version Info

Tagged at
2 years ago