mirror of
https://github.com/status-im/actions-hugo.git
synced 2025-01-12 05:44:32 +00:00
739a95f1e7
* gha: Add Pull Request to stale target * gha: Add ncc check step (Close #98 ) * src: Rename showVersion() * test: Add not to be cases * Remove old comment * gha: Add update major tag workflow (Close #97 )
16 lines
354 B
TypeScript
16 lines
354 B
TypeScript
import getOS from '../src/get-os';
|
|
|
|
describe('getOS', () => {
|
|
test('test', () => {
|
|
expect(getOS('linux')).toBe('Linux');
|
|
expect(getOS('darwin')).toBe('macOS');
|
|
expect(getOS('win32')).toBe('Windows');
|
|
});
|
|
|
|
test('test exception', () => {
|
|
expect(() => {
|
|
getOS('centos');
|
|
}).toThrowError('centos is not supported');
|
|
});
|
|
});
|