@@ -271,7 +271,7 @@ describe('native components', function() {
271271 expect ( generateSnapshot ( source , template ) ) . toMatchSnapshot ( ) ;
272272 } ) ;
273273
274- test ( 'handles `classNames` correctly' , ( ) => {
274+ test ( 'handles `@ classNames` correctly' , ( ) => {
275275 let source = `
276276 import { classNames } from '@ember-decorators/component';
277277
@@ -285,7 +285,7 @@ describe('native components', function() {
285285 expect ( generateSnapshot ( source , template ) ) . toMatchSnapshot ( ) ;
286286 } ) ;
287287
288- test ( 'handles single `classNames` item correctly' , ( ) => {
288+ test ( 'handles single `@ classNames` item correctly' , ( ) => {
289289 let source = `
290290 import { classNames } from '@ember-decorators/component';
291291
@@ -299,7 +299,7 @@ describe('native components', function() {
299299 expect ( generateSnapshot ( source , template ) ) . toMatchSnapshot ( ) ;
300300 } ) ;
301301
302- test ( 'handles `classNameBindings` correctly' , ( ) => {
302+ test ( 'handles `@ classNameBindings` correctly' , ( ) => {
303303 let source = `
304304 import { classNameBindings } from '@ember-decorators/component';
305305
@@ -385,30 +385,32 @@ describe('native components', function() {
385385 `"Using \`click()\` is not supported in tagless components"`
386386 ) ;
387387 } ) ;
388- //
389- // test('multi-line template', () => {
390- // let source = `export default Component.extend({});`;
391- //
392- // let template = `
393- // {{#if this.foo}}
394- // FOO
395- // {{else}}
396- // BAR
397- // {{/if}}
398- // `.trim();
399- //
400- // expect(generateSnapshot(source, template)).toMatchSnapshot();
401- // });
402- //
403- // test('handles `hasComponentCSS` option correctly', () => {
404- // let source = `
405- // export default Component.extend({
406- // classNames: ['foo', 'bar:baz'],
407- // });
408- // `;
409- //
410- // let template = `foo`;
411- //
412- // expect(generateSnapshot(source, template, { hasComponentCSS: true })).toMatchSnapshot();
413- // });
388+
389+ test ( 'multi-line template' , ( ) => {
390+ let source = `export default class extends Component {};` ;
391+
392+ let template = `
393+ {{#if this.foo}}
394+ FOO
395+ {{else}}
396+ BAR
397+ {{/if}}
398+ ` . trim ( ) ;
399+
400+ expect ( generateSnapshot ( source , template ) ) . toMatchSnapshot ( ) ;
401+ } ) ;
402+
403+ test ( 'handles `hasComponentCSS` option correctly' , ( ) => {
404+ let source = `
405+ import { classNames } from '@ember-decorators/component';
406+
407+ @classNames('foo', 'bar:baz')
408+ export default class extends Component {
409+ }
410+ ` ;
411+
412+ let template = `foo` ;
413+
414+ expect ( generateSnapshot ( source , template , { hasComponentCSS : true } ) ) . toMatchSnapshot ( ) ;
415+ } ) ;
414416} ) ;
0 commit comments