2024-06-04 04:54:53 +00:00
|
|
|
// Copyright 2018-2024 the Deno authors. All rights reserved. MIT license.
|
|
|
|
|
refactor(assert,async,bytes,cli,collections,crypto,csv,data-structures,datetime,dotenv,encoding,expect,fmt,front-matter,fs,html,http,ini,internal,io,json,jsonc,log,media-types,msgpack,net,path,semver,streams,testing,text,toml,ulid,url,uuid,webgpu,yaml): import from `@std/assert` (#5199)
* refactor: import from `@std/assert`
* update
2024-06-30 08:30:10 +00:00
|
|
|
import { assertEquals } from "@std/assert";
|
2024-06-04 04:54:53 +00:00
|
|
|
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",
|
|
|
|
});
|
|
|
|
});
|