Skip to content

Commit 5600ca5

Browse files
committed
Simple shadowed test in scenario
1 parent 71c57ce commit 5600ca5

1 file changed

Lines changed: 15 additions & 0 deletions

File tree

smoke-tests/scenarios/basic-test.ts

Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -488,6 +488,21 @@ function basicTest(scenarios: Scenarios, appName: string) {
488488
});
489489
});
490490
`,
491+
'hash-as-keyword-shadowed-test.gjs': `
492+
import { module, test } from 'qunit';
493+
import { setupRenderingTest } from 'ember-qunit';
494+
import { render } from '@ember/test-helpers';
495+
496+
module('{{hash}} as keyword', function(hooks) {
497+
setupRenderingTest(hooks);
498+
499+
test('it works', async function(assert) {
500+
const hash = (data) => data;
501+
await render(<template>{{hash "hello"}}</template>);
502+
assert.dom().hasText('hello');
503+
});
504+
});
505+
`,
491506
},
492507
},
493508
});

0 commit comments

Comments
 (0)