Skip to content

Commit

Permalink
Use hasOwnProperty in StoreWatchMixin test
Browse files Browse the repository at this point in the history
  • Loading branch information
Brandon Tilley committed Jul 10, 2014
1 parent e402faf commit 3729140
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions test/unit/test_store_watch_mixin.js
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ describe("FluxMixin", function() {
global.document = window.document;
global.navigator = window.navigator;
for (var i in require.cache) {
if(true) {
if (require.cache.hasOwnProperty(i)) {
delete require.cache[i];
}
}
Expand Down Expand Up @@ -96,7 +96,7 @@ describe("FluxMixin", function() {
};

flux = new Fluxxor.Flux(stores, actions);

Comp = createComponent(React);
});

Expand All @@ -122,7 +122,7 @@ describe("FluxMixin", function() {
});
});


it("throws when attempting to mix in the function directly", function() {
var Comp = React.createClass({
mixins: [Fluxxor.StoreWatchMixin],
Expand All @@ -132,5 +132,5 @@ describe("FluxMixin", function() {
React.renderComponentToString(Comp());
}).to.throw(/StoreWatchMixin.*function/);
});

});

0 comments on commit 3729140

Please sign in to comment.