Skip to content

Commit

Permalink
Better property comparison test
Browse files Browse the repository at this point in the history
  • Loading branch information
lukechilds committed Jun 30, 2017
1 parent 684b177 commit aeee8bd
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions test/window-properties-should-be-as-expected.js
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,5 @@ import expectedProperties from './fixtures/expectedProperties';
test(t => {
browserEnv();
const properties = Object.getOwnPropertyNames(window);
t.is(properties.length, expectedProperties.length);
properties.forEach(prop => t.true(expectedProperties.indexOf(prop) > -1));
t.deepEqual(expectedProperties.sort(), properties.sort());
});

0 comments on commit aeee8bd

Please sign in to comment.