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

utils.test.ts

14 lines436 Bytes

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