mirror of
https://github.com/peaceiris/actions-hugo.git
synced 2025-05-04 14:25:30 +08:00
16 lines
368 B
TypeScript
16 lines
368 B
TypeScript
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');
|
|
});
|
|
});
|