Skip to content

Commit

Permalink
Merge pull request #4 from xjamundx/tests-could-pass
Browse files Browse the repository at this point in the history
Tests: obj/rest spread and computed-property rule (fixes #3)
  • Loading branch information
feross committed Aug 6, 2015
2 parents aa27c7e + ecd8b8d commit 0e01922
Showing 1 changed file with 7 additions and 1 deletion.
8 changes: 7 additions & 1 deletion tests/computed-property-even-spacing.js
Original file line number Diff line number Diff line change
Expand Up @@ -79,7 +79,13 @@ ruleTester.run('computed-property-even-spacing', rule, {

// never - unrelated cases
{ code: 'var foo = {};', options: ['never'] },
{ code: 'var foo = [];', options: ['never'] }
{ code: 'var foo = [];', options: ['never'] },
{ code: 'bar[ foo ]', options: ['even'] },

// even - unrelated cases
{ code: 'const { a, ...b } = obj', options: ['even'], ecmaFeatures: { blockBindings: true, destructuring: true, experimentalObjectRestSpread: true } },
{ code: 'func(a, { ...b })', options: ['even'], ecmaFeatures: { destructuring: true, experimentalObjectRestSpread: true } }

],

invalid: [
Expand Down

0 comments on commit 0e01922

Please sign in to comment.