Skip to content

Commit ee5c711

Browse files
committed
update tests to match latest node error messages
1 parent a3e86d9 commit ee5c711

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

test/createLogicMiddleware-process.spec.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -378,7 +378,7 @@ describe('createLogicMiddleware-process', () => {
378378
it('dispatches UNHANDLED_LOGIC_ERROR', () => {
379379
expect(dispatch.calls.length).toBe(1);
380380
expect(dispatch.calls[0].arguments[0].type).toBe('UNHANDLED_LOGIC_ERROR');
381-
expect(dispatch.calls[0].arguments[0].payload.message).toMatch('Cannot read property');
381+
expect(dispatch.calls[0].arguments[0].payload.message).toMatch('Cannot read propert');
382382
expect(dispatch.calls[0].arguments[0].error).toBe(true);
383383
});
384384

@@ -404,7 +404,7 @@ describe('createLogicMiddleware-process', () => {
404404
{ nextAction: { type: 'FOO' }, op: 'bottom' },
405405
{
406406
action: { type: 'FOO' },
407-
dispAction: { type: 'UNHANDLED_LOGIC_ERROR', payload: "Cannot read property 'xyz' of null", error: true },
407+
dispAction: { type: 'UNHANDLED_LOGIC_ERROR', payload: "Cannot read properties of null (reading 'xyz')", error: true },
408408
op: 'dispatch'
409409
},
410410
{ action: { type: 'FOO' }, name: 'L(FOO)-0', op: 'end' }

0 commit comments

Comments
 (0)