flux
flux copied to clipboard
Test variables missing var keyword
In TodoStore-test.js the variables at lines 37-39 are missing var, and i think they are going global
beforeEach(function() {
AppDispatcher = require('../../dispatcher/AppDispatcher');
TodoStore = require('../TodoStore');
callback = AppDispatcher.register.mock.calls[0][0];
});
Not a big deal though :)
Yeah, we should hoist the original declaration of those variables out to the closure of the describe() function. Please submit a pull request, if you want, or I can get to it when I can.
Thanks for taking care of this!