fix: jest/valid-title
This commit is contained in:
parent
02ad104b13
commit
9fa85c5525
2 changed files with 3 additions and 3 deletions
|
|
@ -1,13 +1,13 @@
|
|||
import getOS from '../src/get-os';
|
||||
|
||||
describe('getOS', () => {
|
||||
test('test', () => {
|
||||
test('os type', () => {
|
||||
expect(getOS('linux')).toBe('Linux');
|
||||
expect(getOS('darwin')).toBe('macOS');
|
||||
expect(getOS('win32')).toBe('Windows');
|
||||
});
|
||||
|
||||
test('test exception', () => {
|
||||
test('exception', () => {
|
||||
expect(() => {
|
||||
getOS('centos');
|
||||
}).toThrowError('centos is not supported');
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue