gha: Add testing for windows-2019
This commit is contained in:
parent
724bfcf9f3
commit
302385e671
3 changed files with 7 additions and 5 deletions
|
|
@ -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");
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue