Sha256: 37cc0c4baf925d357562477bb10e63ae198acc8c44024ed4b39a37174ce1d953
Contents?: true
Size: 836 Bytes
Versions: 3
Compression:
Stored size: 836 Bytes
Contents
import { assign } from '@ember/polyfills'; import { moduleFor, DefaultResolverApplicationTestCase } from 'internal-test-helpers'; moduleFor( 'Application with default resolver and autoboot', class extends DefaultResolverApplicationTestCase { get fixture() { return ` <div id="app"></div> <script type="text/x-handlebars">Hello {{outlet}}</script> <script type="text/x-handlebars" id="index">World!</script> `; } get applicationOptions() { return assign(super.applicationOptions, { autoboot: true, rootElement: '#app', }); } ['@test templates in script tags are extracted at application creation'](assert) { this.runTask(() => this.createApplication()); assert.equal(document.getElementById('app').textContent, 'Hello World!'); } } );
Version data entries
3 entries across 3 versions & 1 rubygems