diff options
Diffstat (limited to 'tests/registry/jsr/@std/path/0.220.1/_common/normalize.ts')
-rw-r--r-- | tests/registry/jsr/@std/path/0.220.1/_common/normalize.ts | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/tests/registry/jsr/@std/path/0.220.1/_common/normalize.ts b/tests/registry/jsr/@std/path/0.220.1/_common/normalize.ts new file mode 100644 index 000000000..3a1a16284 --- /dev/null +++ b/tests/registry/jsr/@std/path/0.220.1/_common/normalize.ts @@ -0,0 +1,9 @@ +// Copyright 2018-2024 the Deno authors. All rights reserved. MIT license. +// This module is browser compatible. + +import { assertPath } from "./assert_path.ts"; + +export function assertArg(path: string) { + assertPath(path); + if (path.length === 0) return "."; +} |