Skip to content

Commit

Permalink
Add tests
Browse files Browse the repository at this point in the history
  • Loading branch information
preco21 committed Mar 6, 2018
1 parent f12f2a7 commit 1a084cc
Showing 1 changed file with 14 additions and 0 deletions.
14 changes: 14 additions & 0 deletions tests/src/rules/namespace.js
Original file line number Diff line number Diff line change
Expand Up @@ -92,6 +92,20 @@ const valid = [
options: [{ allowComputed: true }],
}),

// #656: should handle object-rest properties
test({
code: `import * as names from './named-exports'; const {a, b, ...rest} = names;`,
parserOptions: {
ecmaFeatures: {
experimentalObjectRestSpread: true,
},
},
}),
test({
code: `import * as names from './named-exports'; const {a, b, ...rest} = names;`,
parser: 'babel-eslint',
}),

...SYNTAX_CASES,
]

Expand Down

0 comments on commit 1a084cc

Please sign in to comment.