Open History to see the last commit
1import { assert, describe, it } from "vitest";
2
3import { isWindowsPlatform } from "./utils";
4
5describe("isWindowsPlatform", () => {
6 it("matches Windows platform identifiers", () => {
7 assert.isTrue(isWindowsPlatform("Win32"));
8 assert.isTrue(isWindowsPlatform("Windows"));
9 assert.isTrue(isWindowsPlatform("windows_nt"));
10 });
11
12 it("does not match darwin", () => {
13 assert.isFalse(isWindowsPlatform("darwin"));
14 });
15});