From e2d9297cced54667833853ff2c18aabc8fb1fda1 Mon Sep 17 00:00:00 2001 From: Damien Butt <22627489+damienbutt@users.noreply.github.com> Date: Sat, 24 Feb 2024 16:02:24 +0000 Subject: [PATCH] test: move remote join check into separate test file --- tests/app.test.ts | 8 -------- tests/check.test.ts | 16 ++++++++++++++++ 2 files changed, 16 insertions(+), 8 deletions(-) create mode 100644 tests/check.test.ts diff --git a/tests/app.test.ts b/tests/app.test.ts index 54bedfd..4e2e51e 100644 --- a/tests/app.test.ts +++ b/tests/app.test.ts @@ -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"; @@ -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); }); diff --git a/tests/check.test.ts b/tests/check.test.ts new file mode 100644 index 0000000..ce02ec6 --- /dev/null +++ b/tests/check.test.ts @@ -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); + }); +});