Sha256: ee6be271b8f7a0f56a68d69700c6e5c02f4992d5cb63496e896c51be5ef69b29
Contents?: true
Size: 1006 Bytes
Versions: 2
Compression:
Stored size: 1006 Bytes
Contents
import { ENV } from 'ember-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
2 entries across 2 versions & 1 rubygems
Version | Path |
---|---|
discourse-ember-source-3.5.1.1 | dist/es/ember/tests/routing/toplevel_dom_test.js |
discourse-ember-source-3.5.1.0 | dist/dist/es/ember/tests/routing/toplevel_dom_test.js |