Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
Skip default property test on node 4
  • Loading branch information
lukastaegert committed Jun 20, 2018
1 parent dd35b6e commit 39cc149
Show file tree
Hide file tree
Showing 3 changed files with 9 additions and 4 deletions.
8 changes: 6 additions & 2 deletions test/function/index.js
Expand Up @@ -15,8 +15,12 @@ describe('function', () => {
if (dir[0] === '.') return; // .DS_Store...

const config = loadConfig(samples + '/' + dir + '/_config.js');
if (!config) return;

if (
!config ||
(config.minNodeVersion &&
config.minNodeVersion > Number(/^v(\d+)/.exec(process.version)[1]))
)
return;
(config.skip ? it.skip : config.solo ? it.only : it)(dir, () => {
process.chdir(samples + '/' + dir);

Expand Down
3 changes: 2 additions & 1 deletion test/function/samples/reassign-pattern-defaults/_config.js
@@ -1,3 +1,4 @@
module.exports = {
description: 'makes sure reassignments of pattern defaults are tracked'
description: 'makes sure reassignments of pattern defaults are tracked',
minNodeVersion: 6
};
2 changes: 1 addition & 1 deletion test/function/samples/reassign-pattern-defaults/main.js
@@ -1,5 +1,5 @@
var foo = {x: true};
var {bar = foo} = {};
var {bar: bar = foo} = {};

bar.x = false;

Expand Down

0 comments on commit 39cc149

Please sign in to comment.