Files
dbx/packages/app-tests/windowControlsFullscreenInset.test.ts
T
t8y2 fabf2172e4 chore: migrate test runner from node:test/tsx to vitest
155 files, 1091 tests, 4.3s (2x faster than previous 9.1s).
2026-06-08 01:17:27 +08:00

11 lines
605 B
TypeScript

import assert from "node:assert/strict";
import { test } from "vitest";
import * as windowControlsModule from "../../apps/desktop/src/composables/useWindowControls.ts";
test("mac traffic-light inset is removed in fullscreen", () => {
assert.equal(typeof windowControlsModule.shouldReserveMacTrafficLightInset, "function");
assert.equal(windowControlsModule.shouldReserveMacTrafficLightInset(true, false), true);
assert.equal(windowControlsModule.shouldReserveMacTrafficLightInset(true, true), false);
assert.equal(windowControlsModule.shouldReserveMacTrafficLightInset(false, false), false);
});