Skip to content

Commit

Permalink
Update to tests
Browse files Browse the repository at this point in the history
  • Loading branch information
jameskerr committed Aug 31, 2022
1 parent 040026c commit f9f4c4d
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
4 changes: 1 addition & 3 deletions packages/zealot/src/client/client.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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", () => {
Expand Down
2 changes: 2 additions & 0 deletions src/test/system/system-test-class.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -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)

Expand Down Expand Up @@ -56,6 +57,7 @@ export class SystemTest {
})

this.assign(await bootBrim(name, opts))
this.store.dispatch(Tabs.create())
this.navTo(`/lakes/${defaultLake().id}`)
})

Expand Down

0 comments on commit f9f4c4d

Please sign in to comment.