fix(browser): address platform and port review

This commit is contained in:
Tam Nhu Tran committed 2026-04-16 18:49:24 -04:00
1 parent 06f6f5485f
commit 8a17410f96
7 files changed
+87 -18

No files matched your search

+17
View File
@@ -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');
});
});