Skip to content

Commit 3dc8463

Browse files
committed
test(store): use lastCall instead of using length-1 to get recent spy call
1 parent d199c88 commit 3dc8463

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

modules/store/spec/selector.spec.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -567,7 +567,7 @@ describe('Selectors', () => {
567567
selector({ featureA: {} });
568568

569569
expect(warnSpy).toHaveBeenCalled();
570-
expect(warnSpy.mock.calls[warnSpy.mock.calls.length - 1][0]).toMatch(
570+
expect(warnSpy.mock.lastCall?.[0]).toMatch(
571571
/The feature name "featureB" does not exist/
572572
);
573573

0 commit comments

Comments
 (0)