Skip to content

Commit

Permalink
Add comment explaining double mock
Browse files Browse the repository at this point in the history
  • Loading branch information
mikecote committed Mar 10, 2020
1 parent a010126 commit b9c41f3
Showing 1 changed file with 1 addition and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -74,6 +74,7 @@ test('calls actionsPlugin.execute per selected action', async () => {
});

test(`doesn't call actionsPlugin.execute for disabled actionTypes`, async () => {
// Mock two calls, one for check against actions[0] and the second for actions[1]
createExecutionHandlerParams.actionsPlugin.isActionTypeEnabled.mockReturnValueOnce(false);
createExecutionHandlerParams.actionsPlugin.isActionTypeEnabled.mockReturnValueOnce(true);
const executionHandler = createExecutionHandler({
Expand Down

0 comments on commit b9c41f3

Please sign in to comment.