Skip to content

Commit

Permalink
remove this fallback from node tests
Browse files Browse the repository at this point in the history
(cherry picked from commit 3ca8423)
  • Loading branch information
ef4 authored and kategengler committed Nov 10, 2021
1 parent 3c29155 commit bb95620
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 5 deletions.
4 changes: 2 additions & 2 deletions tests/node/app-boot-test.js
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ QUnit.module('App Boot', function (hooks) {
this.template(
'components/root-component',
"\
<h1>Hello {{#if hasExistence}}{{location}}{{/if}}</h1>\
<h1>Hello {{#if this.hasExistence}}{{this.location}}{{/if}}</h1>\
<div>{{component 'foo-bar'}}</div>\
"
);
Expand Down Expand Up @@ -57,7 +57,7 @@ QUnit.module('App Boot', function (hooks) {
this.route('photos');
});

this.template('application', '<h1>{{{title}}}</h1>');
this.template('application', '<h1>{{{this.title}}}</h1>');
this.controller('application', {
title: '<b>Hello world</b>',
});
Expand Down
2 changes: 1 addition & 1 deletion tests/node/component-rendering-test.js
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ QUnit.module('Components can be rendered without a DOM dependency', function (ho
QUnit.test('Component with dynamic value', function (assert) {
this.set('location', 'World');

let html = this.render('<h1>Hello {{location}}</h1>');
let html = this.render('<h1>Hello {{this.location}}</h1>');

assert.ok(html.match(/<h1>Hello World<\/h1>/));
});
Expand Down
4 changes: 2 additions & 2 deletions tests/node/visit-test.js
Original file line number Diff line number Diff line change
Expand Up @@ -51,7 +51,7 @@ QUnit.module('Ember.Application - visit() Integration Tests', function (hooks) {
this.template('application', '<h1>Hello world</h1>\n{{outlet}}');
this.template('a', '<h2>Welcome to {{x-foo page="A"}}</h2>');
this.template('b', '<h2>{{x-foo page="B"}}</h2>');
this.template('components/x-foo', 'Page {{page}}');
this.template('components/x-foo', 'Page {{this.page}}');

let initCalled = false;
let didInsertElementCalled = false;
Expand Down Expand Up @@ -135,7 +135,7 @@ QUnit.module('Ember.Application - visit() Integration Tests', function (hooks) {
});

QUnit.test('FastBoot: attributes are sanitized', function (assert) {
this.template('application', '<a href={{test}}></a>');
this.template('application', '<a href={{this.test}}></a>');

this.controller('application', {
test: 'javascript:alert("hello")',
Expand Down

0 comments on commit bb95620

Please sign in to comment.