15 lines · 437 B · TypeScript
RawDownload
import { assert, describe, 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"));  });});

Keyboard shortcuts

General

Show keyboard shortcuts
?
Focus the current search
/

Issues and pull requests

Open filters
f

Issues, pull requests and Inbox

Select next item
j↓
Select previous item
k↑
Open selected item
Enter
Dismiss filters or clear selection
Esc

Repository code

Go to file
t