Skip to content

Commit

Permalink
test: add reproducible issue test of #54
Browse files Browse the repository at this point in the history
  • Loading branch information
59naga committed Jun 25, 2018
1 parent 45672a8 commit b67ab83
Showing 1 changed file with 8 additions and 0 deletions.
8 changes: 8 additions & 0 deletions test/spec.js
Original file line number Diff line number Diff line change
Expand Up @@ -137,6 +137,14 @@ module.exports = [
}
}
},
{
name: `only access real properties(#54)`,
code: 'var a=function(){function t(e,r){for(var n=0;n<r.length;n++){var t=r[n];t.enumerable=t.enumerable||!1,t.configurable=!0,"value"in t&&(t.writable=!0),Object.defineProperty(e,t.key,t)}}return function(e,r,n){return r&&t(e.prototype,r),n&&t(e,n),e}}();',
expected: {
module: {},
exports: {}
}
},
{
name: 'add a default property to the exported object',
options: { addDefaultProperty: true },
Expand Down

0 comments on commit b67ab83

Please sign in to comment.