From f9f4c4d164ac954f5fc0684eaf51677c555c9f74 Mon Sep 17 00:00:00 2001 From: James Kerr Date: Wed, 31 Aug 2022 08:12:17 -0700 Subject: [PATCH] Update to tests --- packages/zealot/src/client/client.test.ts | 4 +--- src/test/system/system-test-class.tsx | 2 ++ 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/packages/zealot/src/client/client.test.ts b/packages/zealot/src/client/client.test.ts index 18092e2cbc..24b1db3486 100644 --- a/packages/zealot/src/client/client.test.ts +++ b/packages/zealot/src/client/client.test.ts @@ -59,9 +59,7 @@ test("#query collector", async () => { const fn = jest.fn() await resp.collect(fn) - // It calls when the first 30 are returned, then when they - // are all returned - expect(fn).toHaveBeenCalledTimes(2) + expect(fn).toHaveBeenCalledTimes(1) }) test("curl", () => { diff --git a/src/test/system/system-test-class.tsx b/src/test/system/system-test-class.tsx index 8b6ba91204..0752e2e6ce 100644 --- a/src/test/system/system-test-class.tsx +++ b/src/test/system/system-test-class.tsx @@ -15,6 +15,7 @@ import {Store} from "src/js/state/types" import data from "src/test/shared/data" import {setupServer} from "msw/node" import {BootArgs, bootBrim} from "./boot-brim" +import Tabs from "src/js/state/Tabs" jest.setTimeout(20_000) @@ -56,6 +57,7 @@ export class SystemTest { }) this.assign(await bootBrim(name, opts)) + this.store.dispatch(Tabs.create()) this.navTo(`/lakes/${defaultLake().id}`) })