Sha256: c35f72ac83c1a423dde1d9dba68153b6768fa889a13c0785cfb249f243a0e8da
Contents?: true
Size: 1018 Bytes
Versions: 1
Compression:
Stored size: 1018 Bytes
Contents
import { ENV } from '@ember/-internals/environment'; import { moduleFor, ApplicationTestCase } from 'internal-test-helpers'; moduleFor( 'Top Level DOM Structure', class extends ApplicationTestCase { constructor() { super(...arguments); this._APPLICATION_TEMPLATE_WRAPPER = ENV._APPLICATION_TEMPLATE_WRAPPER; } teardown() { super.teardown(); ENV._APPLICATION_TEMPLATE_WRAPPER = this._APPLICATION_TEMPLATE_WRAPPER; } ['@test topmost template with wrapper']() { ENV._APPLICATION_TEMPLATE_WRAPPER = true; this.addTemplate('application', 'hello world'); return this.visit('/').then(() => { this.assertComponentElement(this.element, { content: 'hello world' }); }); } ['@test topmost template without wrapper']() { ENV._APPLICATION_TEMPLATE_WRAPPER = false; this.addTemplate('application', 'hello world'); return this.visit('/').then(() => { this.assertInnerHTML('hello world'); }); } } );
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
discourse-ember-source-3.6.0.0 | dist/es/ember/tests/routing/toplevel_dom_test.js |