Skip to content

Commit

Permalink
undefined: improve test
Browse files Browse the repository at this point in the history
  • Loading branch information
hbbio committed Apr 2, 2024
1 parent 8601bb0 commit 090de07
Showing 1 changed file with 5 additions and 2 deletions.
7 changes: 5 additions & 2 deletions src/undefined.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -33,10 +33,13 @@ test("map with undefined", async () => {
await expect(c.get()).resolves.toBe(6);

a.set(1);
await proxy.working.wait();

expect(a.value).toBe(1);
a.set(3);
expect(l).toEqual([6]);

Check failure on line 39 in src/undefined.test.ts

View workflow job for this annotation

GitHub Actions / Build

src/undefined.test.ts > map with undefined

AssertionError: expected [ 6, 6 ] to deeply equal [ 6 ] - Expected + Received Array [ 6, + 6, ] ❯ src/undefined.test.ts:39:13

Check failure on line 39 in src/undefined.test.ts

View workflow job for this annotation

GitHub Actions / Build

src/undefined.test.ts > map with undefined

AssertionError: expected [ 6, 6 ] to deeply equal [ 6 ] - Expected + Received Array [ 6, + 6, ] ❯ src/undefined.test.ts:39:13

Check failure on line 39 in src/undefined.test.ts

View workflow job for this annotation

GitHub Actions / test (20.x)

src/undefined.test.ts > map with undefined

AssertionError: expected [ 6, 6 ] to deeply equal [ 6 ] - Expected + Received Array [ 6, + 6, ] ❯ src/undefined.test.ts:39:13

await c.working;
a.set(3);
await proxy.working.wait();

await expect(b.get()).resolves.toBe(6);
await expect(c.get()).resolves.toBe(9);
Expand Down

0 comments on commit 090de07

Please sign in to comment.