gha: Add testing for windows-2019

This commit is contained in:
peaceiris 2019-09-18 10:39:24 +09:00
parent 724bfcf9f3
commit 302385e671
3 changed files with 7 additions and 5 deletions

View file

@ -4,12 +4,13 @@ describe("getOS", () => {
test("test", () => {
expect(getOS("linux")).toBe("Linux");
expect(getOS("darwin")).toBe("macOS");
expect(getOS("win32")).toBe("Windows");
});
test("test exception", () => {
expect(() => {
getOS("win32");
}).toThrowError("Windows is not supported");
// expect(() => {
// getOS("win32");
// }).toThrowError("Windows is not supported");
expect(() => {
getOS("centos");
}).toThrowError("centos is not supported");