Browse Source

Log changed properties in test

pull/8/head
Luke Childs 7 years ago
parent
commit
0ab14585a6
  1. 12
      test/unit.js

12
test/unit.js

@ -19,5 +19,17 @@ test('properties haven\'t changed', t => {
});
const properties = Object.getOwnPropertyNames(window);
expectedProperties.forEach(expected => {
if (properties.indexOf(expected) === -1) {
console.log('Removed:', expected);
}
});
properties.forEach(prop => {
if (expectedProperties.indexOf(prop) === -1) {
console.log('Added:', prop);
}
});
t.deepEqual(expectedProperties.sort(), properties.sort());
});

Loading…
Cancel
Save