Add support for different processor architectures

This commit is contained in:
Steve Teuber 2021-05-21 10:33:02 +02:00
parent 65bdbf15ab
commit 4261360a96
10 changed files with 859 additions and 718 deletions

View file

@ -0,0 +1,15 @@
import getArch from '../src/get-arch';
describe('getArch', () => {
test('processor architecture', () => {
expect(getArch('x64')).toBe('64bit');
expect(getArch('arm')).toBe('ARM');
expect(getArch('arm64')).toBe('ARM64');
});
test('exception', () => {
expect(() => {
getArch('mips');
}).toThrowError('mips is not supported');
});
});