Skip to main content
Using Deno in production at your company? Earn free Deno merch.
Give us feedback
Module

std/path/normalize_test.ts

The Deno Standard Library
Go to Latest
File
// Copyright 2018-2024 the Deno authors. All rights reserved. MIT license.import { assertEquals } from "../assert/mod.ts";import { normalize } from "./normalize.ts";
Deno.test(`normalize() returns "." if input is empty`, function () { assertEquals(normalize(""), ".");
const pwd = Deno.cwd(); assertEquals(normalize(pwd), pwd);});