format: run npm format task

This commit is contained in:
peaceiris 2019-09-21 10:00:59 +09:00
parent 7e7e0130d0
commit 4e3dcc4c49
7 changed files with 52 additions and 52 deletions

View file

@ -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');
});
});