Skip to content

Commit

Permalink
Don't mock accessors
Browse files Browse the repository at this point in the history
  • Loading branch information
DmitrySoshnikov committed Jun 19, 2015
1 parent c229ed1 commit 390c764
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/lib/moduleMocker.js
Original file line number Diff line number Diff line change
Expand Up @@ -61,8 +61,8 @@ function getSlots(object) {
var collectProp = function(prop) {
var propDesc = Object.getOwnPropertyDescriptor(object, prop);
if (forbiddenProps.indexOf(prop) === -1 &&
// Include only enumerable accessors.
(propDesc.enumerable || !propDesc.get)) {
// Don't include accessors.
!propDesc.get) {
slots[prop] = true;
}
};
Expand Down

0 comments on commit 390c764

Please sign in to comment.