Skip to content

Commit

Permalink
test fix
Browse files Browse the repository at this point in the history
  • Loading branch information
dingchaoyan1983 committed Jul 15, 2018
1 parent e331eb9 commit e574e31
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/index.js
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
export function batchedSubscribe(batch, blacklist) {
export function batchedSubscribe(batch, blacklist = []) {
if (typeof batch !== 'function') {
throw new Error('Expected batch to be a function.');
}
Expand Down Expand Up @@ -54,7 +54,7 @@ export function batchedSubscribe(batch, blacklist) {
const [action] = dispatchArgs;
const { type } = action;
const res = store.dispatch(...dispatchArgs);
if (blacklist.include(type)) {
if (blacklist.includes(type)) {
notifyListeners();
} else {
notifyListenersBatched();
Expand Down

0 comments on commit e574e31

Please sign in to comment.