Skip to content

Commit

Permalink
test: move remote join check into separate test file
Browse files Browse the repository at this point in the history
  • Loading branch information
damienbutt committed Feb 24, 2024
1 parent 9afb8f5 commit e2d9297
Show file tree
Hide file tree
Showing 2 changed files with 16 additions and 8 deletions.
8 changes: 0 additions & 8 deletions tests/app.test.ts
Original file line number Diff line number Diff line change
@@ -1,5 +1,4 @@
import { describe, it, expect } from "vitest";
import { getCh5ReservedJoins } from "@norgate-av/ch5-join-getter";
import CrestronCH5 from "../src/index.js";
import { assertKeyValuePairs } from "./helpers.js";

Expand Down Expand Up @@ -64,13 +63,6 @@ describe("Crestron CH5 Helper", () => {
});
});

it("should match the latest available reserved joins", async () => {
const data = await getCh5ReservedJoins();

expect(data).toBeDefined();
expect(data).toEqual(CrestronCH5.ReservedJoin);
});

it("should always pass", () => {
expect(true).toBe(true);
});
Expand Down
16 changes: 16 additions & 0 deletions tests/check.test.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,16 @@
import { describe, it, expect } from "vitest";
import { getCh5ReservedJoins } from "@norgate-av/ch5-join-getter";
import CrestronCH5 from "../src/index.js";

describe("Check CH5 Joins", () => {
it("should match the latest available reserved joins", async () => {
const data = await getCh5ReservedJoins();

expect(data).toBeDefined();
expect(data).toEqual(CrestronCH5.ReservedJoin);
});

it("should always pass", () => {
expect(true).toBe(true);
});
});

0 comments on commit e2d9297

Please sign in to comment.