Skip to content
Source
Sign inSign up
pingdotgg/t3code
Open History to see the last commit

utils.test.ts

15 lines437 Bytes

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});