@@ -49,7 +49,7 @@ describe('ColocatedTemplateCompiler', function() {
4949 'foo.js' :
5050 stripIndent `
5151 import { hbs } from 'ember-cli-htmlbars';
52- const __COLOCATED_TEMPLATE__ = hbs\` {{yield}}\` ;
52+ const __COLOCATED_TEMPLATE__ = hbs(" {{yield}}", {"contents":"{{yield}}","moduleName":"app-name-here/components/foo.hbs","parseOptions":{"srcName":"app-name-here/components/foo.hbs"}}) ;
5353 import templateOnly from '@ember/component/template-only';
5454
5555 export default templateOnly();` + '\n' ,
@@ -92,7 +92,7 @@ describe('ColocatedTemplateCompiler', function() {
9292 components : {
9393 'foo.js' : stripIndent `
9494 import { hbs } from 'ember-cli-htmlbars';
95- const __COLOCATED_TEMPLATE__ = hbs\` {{yield}}\` ;
95+ const __COLOCATED_TEMPLATE__ = hbs(" {{yield}}", {"contents":"{{yield}}","moduleName":"app-name-here/components/foo.hbs","parseOptions":{"srcName":"app-name-here/components/foo.hbs"}}) ;
9696 import Component from '@glimmer/component';
9797
9898 export default class FooComponent extends Component {}
@@ -135,7 +135,7 @@ describe('ColocatedTemplateCompiler', function() {
135135 'foo.js' :
136136 stripIndent `
137137 import { hbs } from 'ember-cli-htmlbars';
138- const __COLOCATED_TEMPLATE__ = hbs\` {{yield}}\` ;
138+ const __COLOCATED_TEMPLATE__ = hbs(" {{yield}}", {"contents":"{{yield}}","moduleName":"@scope-name/addon-name-here/components/foo.hbs","parseOptions":{"srcName":"@scope-name/addon-name-here/components/foo.hbs"}}) ;
139139 import templateOnly from '@ember/component/template-only';
140140
141141 export default templateOnly();` + '\n' ,
@@ -182,7 +182,7 @@ describe('ColocatedTemplateCompiler', function() {
182182 components : {
183183 'foo.js' : stripIndent `
184184 import { hbs } from 'ember-cli-htmlbars';
185- const __COLOCATED_TEMPLATE__ = hbs\` {{yield}}\` ;
185+ const __COLOCATED_TEMPLATE__ = hbs(" {{yield}}", {"contents":"{{yield}}","moduleName":"@scope-name/addon-name-here/components/foo.hbs","parseOptions":{"srcName":"@scope-name/addon-name-here/components/foo.hbs"}}) ;
186186 import Component from '@glimmer/component';
187187
188188 export default class FooComponent extends Component {}
0 commit comments