format: run npm format task
This commit is contained in:
parent
7e7e0130d0
commit
4e3dcc4c49
7 changed files with 52 additions and 52 deletions
|
|
@ -1,18 +1,18 @@
|
|||
import getOS from "../src/get-os";
|
||||
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");
|
||||
describe('getOS', () => {
|
||||
test('test', () => {
|
||||
expect(getOS('linux')).toBe('Linux');
|
||||
expect(getOS('darwin')).toBe('macOS');
|
||||
expect(getOS('win32')).toBe('Windows');
|
||||
});
|
||||
|
||||
test("test exception", () => {
|
||||
test('test exception', () => {
|
||||
// expect(() => {
|
||||
// getOS("win32");
|
||||
// }).toThrowError("Windows is not supported");
|
||||
expect(() => {
|
||||
getOS("centos");
|
||||
}).toThrowError("centos is not supported");
|
||||
getOS('centos');
|
||||
}).toThrowError('centos is not supported');
|
||||
});
|
||||
});
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue