mirror of
https://github.com/tiennm99/ccs.git
synced 2026-10-14 14:17:11 +00:00
fix(browser): address platform and port review
This commit is contained in:
1 parent
06f6f5485f
commit
8a17410f96
7 files changed
+87
-18
No files matched your search
@@ -0,0 +1,17 @@
|
||||
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');
|
||||
});
|
||||
});
|
||||
Reference in new issue
Block a user