std/path/normalize_test.ts

11 lines
337 B
TypeScript
Raw Normal View History

// Copyright 2018-2024 the Deno authors. All rights reserved. MIT license.
2024-01-31 09:10:15 +00:00
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);
});