Skip to content

Commit

Permalink
Add test for ghosting custom properties
Browse files Browse the repository at this point in the history
  • Loading branch information
ThomasBrierley committed Jul 12, 2017
1 parent fe0b993 commit ac00237
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions test/utils/customs.test.js
Expand Up @@ -123,6 +123,12 @@ describe ('customs', function () {
array.length = Infinity;
assert.equal(customs.isSafeProperty(array, 'length'), false);

// ghosted custom property
var object = {foo: true};
object = Object.create(object);
object.foo = false;
assert.equal(customs.isSafeProperty(object, 'foo'), true);

});

});
Expand Down

0 comments on commit ac00237

Please sign in to comment.