Skip to content

Commit db41094

Browse files
committed
Merge pull request #5 from TristanWright/error-message-format
Error message tweaks and format fixes
2 parents 4b0df85 + 69e3b90 commit db41094

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

src/asserts/actionUtils.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -36,7 +36,7 @@ function unrollActions(initialState, expectedActions) {
3636
function notDispatchedError(dispatchedActions, expectedActions, expectedAction) {
3737
return new Error(
3838
`Expected action ${JSON.stringify(expectedAction)} was not dispatched.\n` +
39-
`Expected dispatched actions: ${JSON.stringify(expectedActions)}` +
39+
`Expected dispatched actions: ${JSON.stringify(expectedActions)}\n` +
4040
`Actual dispatched actions: ${JSON.stringify(dispatchedActions)}`
4141
);
4242
}

src/asserts/toDispatchActionsWithState.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ import { getDispatchedActions, unrollActions, assertDispatchedActions } from './
44
function toDispatchActionsWithState(initialState, actionUnderTest, expectedActions, done, fail) {
55
if (!isFunction(actionUnderTest) && !isObject(actionUnderTest)) {
66
throw new Error(
7-
'The "actualAction" argument must be a function or object'
7+
'The "actualAction" argument must be a function or an object'
88
);
99
}
1010

@@ -13,7 +13,7 @@ function toDispatchActionsWithState(initialState, actionUnderTest, expectedActio
1313
!Array.isArray(expectedActions)) {
1414
throw new Error(
1515
'The "expectedActions" argument must be ' +
16-
'an action creator function or an action object or an array of them'
16+
'an action creator function, an action object, or an array of them'
1717
);
1818
}
1919

0 commit comments

Comments
 (0)