From 41617572d180c70cca8453b3abcb451603dcf987 Mon Sep 17 00:00:00 2001 From: Bryan Mishkin <698306+bmish@users.noreply.github.com> Date: Mon, 7 Sep 2020 15:52:22 -0400 Subject: [PATCH] test: add spread syntax test --- tests/lib/rules/no-attrs-in-components.js | 2 ++ 1 file changed, 2 insertions(+) diff --git a/tests/lib/rules/no-attrs-in-components.js b/tests/lib/rules/no-attrs-in-components.js index 78726346a5..f0c6d6fb68 100644 --- a/tests/lib/rules/no-attrs-in-components.js +++ b/tests/lib/rules/no-attrs-in-components.js @@ -15,11 +15,13 @@ const { ERROR_MESSAGE } = rule; const ruleTester = new RuleTester({ parserOptions: { ecmaVersion: 6, sourceType: 'module' }, + parser: require.resolve('babel-eslint'), }); ruleTester.run('no-attrs-in-components', rule, { valid: [ "import Component from '@ember/component'; Component.extend({ init() { this.foo.bar; } });", + "import Component from '@ember/component'; Component.extend({ ...foo });", "import Component from '@ember/component'; class MyComponent extends Component { init() { this.foo.bar; } }", "import Component from '@glimmer/component'; class MyComponent extends Component { constructor() { this.foo.bar; } }",