Skip to content

Commit e500583

Browse files
committed
Refactor tests
1 parent 5c23e39 commit e500583

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

packages/core/test/transient.test.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -595,7 +595,7 @@ describe('transient states (eventless transitions)', () => {
595595

596596
actor.subscribe({
597597
error: (err) => {
598-
expect(err).toMatchInlineSnapshot(/infinite loop/i);
598+
expect((err as any).message).toMatch(/infinite loop/i);
599599
}
600600
});
601601

@@ -634,7 +634,7 @@ describe('transient states (eventless transitions)', () => {
634634

635635
actor.subscribe({
636636
error: (err) => {
637-
expect(err).toMatchInlineSnapshot(/infinite loop/i);
637+
expect((err as any).message).toMatch(/infinite loop/i);
638638
}
639639
});
640640

0 commit comments

Comments
 (0)