Co-authored-by: codex <[email protected]> Co-authored-by: Julius Marminge <[email protected]> Co-authored-by: Cursor Agent <[email protected]> Co-authored-by: cursor[bot] <206951365+cursor[bot]@users.noreply.github.com>
15 lines
436 B
TypeScript
15 lines
436 B
TypeScript
import { describe, assert, it } from "vitest";
|
|
import { isWindowsPlatform } from "./utils";
|
|
|
|
describe("isWindowsPlatform", () => {
|
|
it("matches Windows platform identifiers", () => {
|
|
assert.isTrue(isWindowsPlatform("Win32"));
|
|
assert.isTrue(isWindowsPlatform("Windows"));
|
|
assert.isTrue(isWindowsPlatform("windows_nt"));
|
|
});
|
|
|
|
it("does not match darwin", () => {
|
|
assert.isFalse(isWindowsPlatform("darwin"));
|
|
});
|
|
});
|