244244exports[`native components basic 1`] = `
245245" ==========
246246
247+ import Component from '@ember/component';
248+
247249 export default class FooComponent extends Component {
248250 }
249251
254256~~~~~~~~~~
255257
256258 import { tagName } from \\" @ember-decorators/component\\";
259+ import Component from ' @ember/component' ;
260+
257261 @tagName(\\"\\")
258262 export default class FooComponent extends Component {
259263 }
268272exports[`native components handles \`@attribute\` and \`@attributeBindings\` correctly 1`] = `
269273" ==========
270274
275+ import Component from '@ember/component';
271276 import { attribute, attributeBindings } from '@ember-decorators/component';
272277
273278 @attributeBindings('foo')
281286 => tagName: div
282287~~~~~~~~~~
283288
289+ import Component from '@ember/component';
284290 import { tagName } from '@ember-decorators/component';
285291
286292 @tagName(\\" \\")
298304exports[`native components handles \`@attribute\` correctly 1`] = `
299305" ==========
300306
307+ import Component from '@ember/component';
301308 import { attribute } from '@ember-decorators/component';
302309
303310 export default class FooComponent extends Component {
311318 => tagName: div
312319~~~~~~~~~~
313320
321+ import Component from '@ember/component';
314322 import { tagName } from '@ember-decorators/component';
315323
316324 @tagName(\\" \\")
329337exports[`native components handles \`@attributeBindings\` correctly 1`] = `
330338" ==========
331339
340+ import Component from '@ember/component';
332341 import { attributeBindings } from '@ember-decorators/component';
333342
334343 @attributeBindings('foo', 'bar:baz')
341350 => tagName: div
342351~~~~~~~~~~
343352
353+ import Component from '@ember/component';
344354 import { tagName } from '@ember-decorators/component';
345355
346356 @tagName(\\" \\")
357367exports[`native components handles \`@className\` correctly 1`] = `
358368" ==========
359369
370+ import Component from '@ember/component';
360371 import { className } from '@ember-decorators/component';
361372
362373 export default class FooComponent extends Component {
371382 => tagName: div
372383~~~~~~~~~~
373384
385+ import Component from '@ember/component';
374386 import { tagName } from '@ember-decorators/component';
375387
376388 @tagName(\\" \\")
390402exports[`native components handles \`@classNameBindings\` correctly 1`] = `
391403" ==========
392404
405+ import Component from '@ember/component';
393406 import { classNameBindings } from '@ember-decorators/component';
394407
395408 @classNameBindings('a:b', 'x:y:z', 'foo::bar')
402415 => tagName: div
403416~~~~~~~~~~
404417
418+ import Component from '@ember/component';
405419 import { tagName } from '@ember-decorators/component';
406420
407421 @tagName(\\" \\")
418432exports[`native components handles \`@classNames\` correctly 1`] = `
419433" ==========
420434
435+ import Component from '@ember/component';
421436 import { classNames } from '@ember-decorators/component';
422437
423438 @classNames('foo', 'bar:baz')
430445 => tagName: div
431446~~~~~~~~~~
432447
448+ import Component from '@ember/component';
433449 import { tagName } from '@ember-decorators/component';
434450
435451 @tagName(\\" \\")
446462exports[`native components handles \`elementId\` correctly 1`] = `
447463" ==========
448464
465+ import Component from '@ember/component';
466+
449467 export default class FooComponent extends Component {
450468 elementId = 'qux';
451469 }
457475~~~~~~~~~~
458476
459477 import { tagName } from \\" @ember-decorators/component\\";
478+ import Component from ' @ember/component' ;
479+
460480 @tagName(\\"\\")
461481 export default class FooComponent extends Component { }
462482
470490exports[`native components handles \`hasComponentCSS\` option correctly 1`] = `
471491" ==========
472492
493+ import Component from '@ember/component';
473494 import { classNames } from '@ember-decorators/component';
474495
475496 @classNames('foo', 'bar:baz')
482503 => tagName: div
483504~~~~~~~~~~
484505
506+ import Component from '@ember/component';
485507 import { tagName } from '@ember-decorators/component';
486508
487509 @tagName(\\" \\")
498520exports[`native components handles single \`@classNames\` item correctly 1`] = `
499521" ==========
500522
523+ import Component from '@ember/component';
501524 import { classNames } from '@ember-decorators/component';
502525
503526 @classNames('foo')
510533 => tagName: div
511534~~~~~~~~~~
512535
536+ import Component from '@ember/component';
513537 import { tagName } from '@ember-decorators/component';
514538
515539 @tagName(\\" \\")
525549
526550exports[`native components multi-line template 1`] = `
527551" ==========
528- export default class extends Component {};
552+
553+ import Component from '@ember/component';
554+
555+ export default class extends Component {};
556+
529557~~~~~~~~~~
530558{{#if this.foo}}
531559 FOO
@@ -535,9 +563,13 @@ export default class extends Component {};
535563~~~~~~~~~~
536564 => tagName: div
537565~~~~~~~~~~
538- import { tagName } from \\" @ember-decorators/component\\";
539- @tagName(\\"\\")
540- export default class extends Component { }
566+
567+ import { tagName } from \\" @ember-decorators/component\\";
568+ import Component from ' @ember/component' ;
569+
570+ @tagName(\\"\\")
571+ export default class extends Component { }
572+
541573~~~~~~~~~~
542574<div ...attributes>
543575 { {#if this.foo }}
@@ -549,9 +581,38 @@ export default class extends Component {}
549581=========="
550582`;
551583
584+ exports[`native components renamed import 1`] = `
585+ " ==========
586+
587+ import Base from '@ember/component';
588+
589+ export default class FooComponent extends Base {
590+ }
591+
592+ ~~~~~~~~~~
593+ foo
594+ ~~~~~~~~~~
595+ => tagName: div
596+ ~~~~~~~~~~
597+
598+ import { tagName } from \\" @ember-decorators/component\\";
599+ import Base from ' @ember/component' ;
600+
601+ @tagName(\\"\\")
602+ export default class FooComponent extends Base {
603+ }
604+
605+ ~~~~~~~~~~
606+ <div ...attributes>
607+ foo
608+ </div>
609+ =========="
610+ `;
611+
552612exports[`native components replaces existing \`tagName\` 1`] = `
553613" ==========
554614
615+ import Component from '@ember/component';
555616 import { tagName } from '@ember-decorators/component';
556617
557618 @tagName('span')
564625 => tagName: span
565626~~~~~~~~~~
566627
628+ import Component from '@ember/component';
567629 import { tagName } from '@ember-decorators/component';
568630
569631 @tagName(\\" \\")
0 commit comments