Skip to content

Commit

Permalink
Epic Instances without test cases
Browse files Browse the repository at this point in the history
  • Loading branch information
avcs06 committed Jul 22, 2019
1 parent e90599f commit b35d8f1
Show file tree
Hide file tree
Showing 5 changed files with 178 additions and 104 deletions.
35 changes: 28 additions & 7 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

1 change: 1 addition & 0 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -42,6 +42,7 @@
"rollup-watch": "^4.0.0"
},
"dependencies": {
"core-js": "^3.1.4",
"invariant": "^2.2.4",
"memoizee": "^0.4.14"
}
Expand Down
2 changes: 1 addition & 1 deletion spec/tests/basicFunctionality.js
Original file line number Diff line number Diff line change
Expand Up @@ -99,7 +99,7 @@ describe("Basic functionalities", function() {
EpicStore.register(new Epic(epic1, {}, null, [
new Updater([action], () => ({
state: { a: 1 },
passiveUpdate: true
passive: true
}))
]));
EpicStore.register(makeCounterEpic(epic2, epic1));
Expand Down
1 change: 1 addition & 0 deletions spec/tests/epicListeners.js
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,7 @@ describe("Epic Listeners: ", function () {
const listenerSpy = jasmine.createSpy('listener');
EpicStore.register(makeCounterEpic(epic, action));
EpicStore.addListener([epic], listenerSpy);
debugger;
EpicStore.dispatch(action);
expect(listenerSpy).toHaveBeenCalledWith([{ counter: 1 }], { sourceAction: { type: action } });
});
Expand Down
Loading

0 comments on commit b35d8f1

Please sign in to comment.