std/path/normalize_test.ts
Yoshiya Hinosawa 0ce9c2bf7e
experiment
2024-01-31 18:10:15 +09:00

11 lines
337 B
TypeScript

// Copyright 2018-2024 the Deno authors. All rights reserved. MIT license.
import { assertEquals } from "@std/assert";
import { normalize } from "./normalize.ts";
Deno.test(`normalize() returns "." if input is empty`, function () {
assertEquals(normalize(""), ".");
const pwd = Deno.cwd();
assertEquals(normalize(pwd), pwd);
});