Skip to content

Commit

Permalink
Update ubuntu version used in tests
Browse files Browse the repository at this point in the history
  • Loading branch information
angelapwen committed Jul 1, 2024
1 parent 5040710 commit 4af1f36
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions __tests__/os.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -6,11 +6,11 @@ const setSystem = require("getos").__setSystem;

describe("os resolver", () => {
it("finds matching system and version", async () => {
setSystem({ os: "linux", dist: "Ubuntu", release: "18.04" });
setSystem({ os: "linux", dist: "Ubuntu", release: "22.04" });

let ubuntu = await os.getSystem();
expect(ubuntu.os).toBe(os.OS.Ubuntu);
expect(ubuntu.version).toBe("18.04");
expect(ubuntu.version).toBe("22.04");
expect(ubuntu.name).toBe("Ubuntu");

setSystem({ os: "darwin", dist: "macOS", release: "latest" });
Expand Down

0 comments on commit 4af1f36

Please sign in to comment.