Browse Source

Order properties before comparing

pull/34/head
Luke Childs 8 years ago
parent
commit
79fbffea89
  1. 3
      test/window properties should be as expected.js

3
test/window properties should be as expected.js

@ -5,5 +5,6 @@ import browserEnv from '../src';
test(t => {
browserEnv();
const properties = Object.getOwnPropertyNames(window);
t.deepEqual(properties, expectedProperties);
const order = (a, b) => a > b;
t.deepEqual(properties.sort(order), expectedProperties.sort(order));
});

Loading…
Cancel
Save