Skip to content

Commit

Permalink
Test property is added correctly. Relevant to cujojs#29
Browse files Browse the repository at this point in the history
  • Loading branch information
jaredcacurak committed Apr 1, 2014
1 parent f50f86c commit 7cb930e
Showing 1 changed file with 12 additions and 0 deletions.
12 changes: 12 additions & 0 deletions test/object.html
Original file line number Diff line number Diff line change
Expand Up @@ -267,6 +267,18 @@
});
return test.foo == 5 && test.bar == 27;
});
tester.assertTrue("Object.defineProperties should define the prototype property correctly", function () {
function fn() {};

Object.defineProperties(fn, {
prototype: {
value: {
test: true
}
}
});
return fn.prototype.test === true && (new fn).test === true;
});

// test getOwnPropertyDescriptor
tester.assertTrue('Object.getOwnPropertyDescriptor should return a factual descriptor object', function () {
Expand Down

0 comments on commit 7cb930e

Please sign in to comment.