Skip to content

Commit 4ef8b78

Browse files
committed
fix: verify second listener called in test code
1 parent 00c7ac0 commit 4ef8b78

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

test/entity.spec.ts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -898,6 +898,7 @@ describe("Entity Unit Tests", () => {
898898

899899
// State should still be updated despite listener error
900900
expect(user.state.bio).toBe("New bio");
901+
expect(successCallCount).toBe(1);
901902
});
902903

903904
test("should unsubscribe listener when dispose function is called", () => {

0 commit comments

Comments
 (0)