From c2958c72297cd6d5a0530a062e95251593832e2f Mon Sep 17 00:00:00 2001 From: Braxen Date: Sun, 4 Dec 2022 23:45:42 +0100 Subject: [PATCH] fix: tests n stuff --- .github/workflows/check-client.yml | 9 +++++++-- server/tests/config.test.ts | 2 +- 2 files changed, 8 insertions(+), 3 deletions(-) diff --git a/.github/workflows/check-client.yml b/.github/workflows/check-client.yml index 696d7450..d1c22738 100644 --- a/.github/workflows/check-client.yml +++ b/.github/workflows/check-client.yml @@ -19,7 +19,9 @@ jobs: matrix: node-version: [18.x] steps: - - uses: actions/checkout@v2 + - uses: actions/checkout@v3 + with: + submodules: "true" - name: Node.js uses: actions/setup-node@v1 with: @@ -27,7 +29,10 @@ jobs: - run: npm install -g yarn - name: yarn install, lint and build run: | - cd ./client-vue + cd ./twitch-vod-chat + yarn install --immutable --immutable-cache + yarn buildlib + cd ../client-vue yarn install --immutable --immutable-cache yarn lint yarn test diff --git a/server/tests/config.test.ts b/server/tests/config.test.ts index fd9dfeac..91a97875 100644 --- a/server/tests/config.test.ts +++ b/server/tests/config.test.ts @@ -86,7 +86,7 @@ describe("Config", () => { it("setting exists", () => { expect(Config.settingExists("app_url")).toBe(true); expect(Config.settingExists("app_url1")).toBe(false); - expect(Config.getSettingField("app_url")).toHaveProperty("key"); + expect(Config.getSettingField("app_url")).toHaveProperty("text"); expect(Config.getSettingField("app_url1")).toBeUndefined(); });