Browse Source

Better property comparison test

pull/46/merge
Luke Childs 8 years ago
parent
commit
aeee8bdd39
  1. 3
      test/window-properties-should-be-as-expected.js

3
test/window-properties-should-be-as-expected.js

@ -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());
});

Loading…
Cancel
Save