@@ -268,7 +268,7 @@ export class GlimmerishComponents extends RenderTest {
268
268
} )
269
269
'invoking dynamic component (local) via angle brackets' ( ) {
270
270
this . registerComponent ( 'Glimmer' , 'Foo' , 'hello world!' ) ;
271
- this . render ( `{{#with (component 'Foo') as |Other|}}<Other />{{/with }}` ) ;
271
+ this . render ( `{{#let (component 'Foo') as |Other|}}<Other />{{/let }}` ) ;
272
272
273
273
this . assertHTML ( `hello world!` ) ;
274
274
this . assertStableRerender ( ) ;
@@ -280,7 +280,7 @@ export class GlimmerishComponents extends RenderTest {
280
280
'invoking dynamic component (local path) via angle brackets' ( ) {
281
281
this . registerHelper ( 'hash' , ( _positional , named ) => named ) ;
282
282
this . registerComponent ( 'Glimmer' , 'Foo' , 'hello world!' ) ;
283
- this . render ( `{{#with (hash Foo=(component 'Foo')) as |Other|}}<Other.Foo />{{/with }}` ) ;
283
+ this . render ( `{{#let (hash Foo=(component 'Foo')) as |Other|}}<Other.Foo />{{/let }}` ) ;
284
284
285
285
this . assertHTML ( `hello world!` ) ;
286
286
this . assertStableRerender ( ) ;
@@ -291,7 +291,7 @@ export class GlimmerishComponents extends RenderTest {
291
291
} )
292
292
'invoking dynamic component (local) via angle brackets (ill-advised "htmlish element name" but supported)' ( ) {
293
293
this . registerComponent ( 'Glimmer' , 'Foo' , 'hello world!' ) ;
294
- this . render ( `{{#with (component 'Foo') as |div|}}<div />{{/with }}` ) ;
294
+ this . render ( `{{#let (component 'Foo') as |div|}}<div />{{/let }}` ) ;
295
295
296
296
this . assertHTML ( `hello world!` ) ;
297
297
this . assertStableRerender ( ) ;
@@ -302,7 +302,7 @@ export class GlimmerishComponents extends RenderTest {
302
302
} )
303
303
'invoking dynamic component (local) via angle brackets supports attributes' ( ) {
304
304
this . registerComponent ( 'Glimmer' , 'Foo' , '<div ...attributes>hello world!</div>' ) ;
305
- this . render ( `{{#with (component 'Foo') as |Other|}}<Other data-test="foo" />{{/with }}` ) ;
305
+ this . render ( `{{#let (component 'Foo') as |Other|}}<Other data-test="foo" />{{/let }}` ) ;
306
306
307
307
this . assertHTML ( `<div data-test="foo">hello world!</div>` ) ;
308
308
this . assertStableRerender ( ) ;
@@ -313,7 +313,7 @@ export class GlimmerishComponents extends RenderTest {
313
313
} )
314
314
'invoking dynamic component (local) via angle brackets supports args' ( ) {
315
315
this . registerComponent ( 'Glimmer' , 'Foo' , 'hello {{@name}}!' ) ;
316
- this . render ( `{{#with (component 'Foo') as |Other|}}<Other @name="world" />{{/with }}` ) ;
316
+ this . render ( `{{#let (component 'Foo') as |Other|}}<Other @name="world" />{{/let }}` ) ;
317
317
318
318
this . assertHTML ( `hello world!` ) ;
319
319
this . assertStableRerender ( ) ;
@@ -324,7 +324,7 @@ export class GlimmerishComponents extends RenderTest {
324
324
} )
325
325
'invoking dynamic component (local) via angle brackets supports passing a block' ( ) {
326
326
this . registerComponent ( 'Glimmer' , 'Foo' , 'hello {{yield}}!' ) ;
327
- this . render ( `{{#with (component 'Foo') as |Other|}}<Other>world</Other>{{/with }}` ) ;
327
+ this . render ( `{{#let (component 'Foo') as |Other|}}<Other>world</Other>{{/let }}` ) ;
328
328
329
329
this . assertHTML ( `hello world!` ) ;
330
330
this . assertStableRerender ( ) ;
@@ -351,7 +351,7 @@ export class GlimmerishComponents extends RenderTest {
351
351
Foo
352
352
) ;
353
353
this . render (
354
- `{{#with (component 'Foo') as |Other|}}<Other @staticNamedArg="static" data-test1={{this.outer}} data-test2="static" @dynamicNamedArg={{this.outer}}>template</Other>{{/with }}` ,
354
+ `{{#let (component 'Foo') as |Other|}}<Other @staticNamedArg="static" data-test1={{this.outer}} data-test2="static" @dynamicNamedArg={{this.outer}}>template</Other>{{/let }}` ,
355
355
{ outer : 'outer' }
356
356
) ;
357
357
0 commit comments