test: Add not to be cases
This commit is contained in:
parent
2b2ecc2dd1
commit
7c7d22c0de
2 changed files with 3 additions and 9 deletions
|
|
@ -8,9 +8,6 @@ describe('getOS', () => {
|
|||
});
|
||||
|
||||
test('test exception', () => {
|
||||
// expect(() => {
|
||||
// getOS("win32");
|
||||
// }).toThrowError("Windows is not supported");
|
||||
expect(() => {
|
||||
getOS('centos');
|
||||
}).toThrowError('centos is not supported');
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue