mirror of
https://github.com/tiennm99/ccs.git
synced 2026-07-15 20:20:09 +00:00
18 lines
557 B
TypeScript
18 lines
557 B
TypeScript
import { describe, expect, it } from 'bun:test';
|
|
import { getNodePlatformKey } from '../../../../src/utils/browser/platform';
|
|
|
|
describe('browser platform helper', () => {
|
|
it('maps darwin explicitly', () => {
|
|
expect(getNodePlatformKey('darwin')).toBe('darwin');
|
|
});
|
|
|
|
it('maps win32 explicitly', () => {
|
|
expect(getNodePlatformKey('win32')).toBe('win32');
|
|
});
|
|
|
|
it('falls back to linux for other node platforms', () => {
|
|
expect(getNodePlatformKey('linux')).toBe('linux');
|
|
expect(getNodePlatformKey('freebsd')).toBe('linux');
|
|
});
|
|
});
|