mirror of
https://github.com/denoland/std.git
synced 2024-11-21 20:50:22 +00:00
d102a10235
* refactor: import from `@std/assert` * update
16 lines
430 B
TypeScript
16 lines
430 B
TypeScript
// Copyright 2018-2024 the Deno authors. All rights reserved. MIT license.
|
|
|
|
import { assertEquals } from "@std/assert";
|
|
import * as windows from "./windows/mod.ts";
|
|
|
|
Deno.test("windows.parse() parses UNC root only path", () => {
|
|
const parsed = windows.parse("\\\\server\\share");
|
|
assertEquals<unknown>(parsed, {
|
|
base: "\\",
|
|
dir: "\\\\server\\share",
|
|
ext: "",
|
|
name: "",
|
|
root: "\\\\server\\share",
|
|
});
|
|
});
|