Skip to content

Commit

Permalink
fixed Dispatcher tests to take one argument for waitFor. closes faceb…
Browse files Browse the repository at this point in the history
  • Loading branch information
fisherwebdev committed Nov 9, 2014
1 parent b801ea4 commit ec4e205
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions src/__tests__/Dispatcher-test.js
Original file line number Diff line number Diff line change
Expand Up @@ -125,7 +125,7 @@ describe('Dispatcher', function() {

it('should throw on self-circular dependencies', function() {
var tokenA = dispatcher.register(function() {
dispatcher.waitFor([tokenA], callbackA);
dispatcher.waitFor([tokenA]);
});

var payload = {};
Expand All @@ -138,11 +138,11 @@ describe('Dispatcher', function() {

it('should throw on multi-circular dependencies', function() {
var tokenA = dispatcher.register(function() {
dispatcher.waitFor([tokenB], callbackA);
dispatcher.waitFor([tokenB]);
});

var tokenB = dispatcher.register(function() {
dispatcher.waitFor([tokenA], callbackB);
dispatcher.waitFor([tokenA]);
});

var payload = {};
Expand Down

0 comments on commit ec4e205

Please sign in to comment.