From 79591151bf185b15e955a41575918653125c317e Mon Sep 17 00:00:00 2001 From: Bert De Block Date: Wed, 12 May 2021 20:34:46 +0200 Subject: [PATCH] Use explicit this in helper-test blueprints (cherry picked from commit 844c2f493ee40ba47f2a67bc7e2d9afd725068f9) --- .../__root__/__testType__/__collection__/__name__-test.js | 2 +- .../__root__/__testType__/__collection__/__name__-test.js | 2 +- .../__root__/__testType__/__collection__/__name__-test.js | 2 +- .../__root__/__testType__/__collection__/__name__-test.js | 2 +- .../__root__/__testType__/__collection__/__name__-test.js | 2 +- node-tests/fixtures/helper-test/integration.js | 2 +- node-tests/fixtures/helper-test/mocha-0.12.js | 2 +- node-tests/fixtures/helper-test/mocha-rfc232.js | 2 +- node-tests/fixtures/helper-test/mocha.js | 2 +- node-tests/fixtures/helper-test/rfc232.js | 2 +- 10 files changed, 10 insertions(+), 10 deletions(-) diff --git a/blueprints/helper-test/mocha-0.12-files/__root__/__testType__/__collection__/__name__-test.js b/blueprints/helper-test/mocha-0.12-files/__root__/__testType__/__collection__/__name__-test.js index 5e27688598d..051de3a18f5 100644 --- a/blueprints/helper-test/mocha-0.12-files/__root__/__testType__/__collection__/__name__-test.js +++ b/blueprints/helper-test/mocha-0.12-files/__root__/__testType__/__collection__/__name__-test.js @@ -19,7 +19,7 @@ describe('<%= friendlyTestName %>', function() { // `); this.set('inputValue', '1234'); - this.render(hbs`{{<%= dasherizedModuleName %> inputValue}}`); + this.render(hbs`{{<%= dasherizedModuleName %> this.inputValue}}`); expect(this.$().text().trim()).to.equal('1234'); }); diff --git a/blueprints/helper-test/mocha-files/__root__/__testType__/__collection__/__name__-test.js b/blueprints/helper-test/mocha-files/__root__/__testType__/__collection__/__name__-test.js index 0e9276ae197..89d55cf614c 100644 --- a/blueprints/helper-test/mocha-files/__root__/__testType__/__collection__/__name__-test.js +++ b/blueprints/helper-test/mocha-files/__root__/__testType__/__collection__/__name__-test.js @@ -19,7 +19,7 @@ describeComponent('<%= dasherizedModuleName %>', 'helper:<%= dasherizedModuleNam // `); this.set('inputValue', '1234'); - this.render(hbs`{{<%= dasherizedModuleName %> inputValue}}`); + this.render(hbs`{{<%= dasherizedModuleName %> this.inputValue}}`); expect(this.$().text().trim()).to.equal('1234'); }); diff --git a/blueprints/helper-test/mocha-rfc-232-files/__root__/__testType__/__collection__/__name__-test.js b/blueprints/helper-test/mocha-rfc-232-files/__root__/__testType__/__collection__/__name__-test.js index 62a21879351..9b6702f1fd8 100644 --- a/blueprints/helper-test/mocha-rfc-232-files/__root__/__testType__/__collection__/__name__-test.js +++ b/blueprints/helper-test/mocha-rfc-232-files/__root__/__testType__/__collection__/__name__-test.js @@ -11,7 +11,7 @@ describe('<%= friendlyTestName %>', function() { it('renders', async function() { this.set('inputValue', '1234'); - await render(hbs`{{<%= dasherizedModuleName %> inputValue}}`); + await render(hbs`{{<%= dasherizedModuleName %> this.inputValue}}`); expect(this.element.textContent.trim()).to.equal('1234'); }); diff --git a/blueprints/helper-test/qunit-files/__root__/__testType__/__collection__/__name__-test.js b/blueprints/helper-test/qunit-files/__root__/__testType__/__collection__/__name__-test.js index 2182592ebcd..6bef509e111 100644 --- a/blueprints/helper-test/qunit-files/__root__/__testType__/__collection__/__name__-test.js +++ b/blueprints/helper-test/qunit-files/__root__/__testType__/__collection__/__name__-test.js @@ -9,7 +9,7 @@ moduleForComponent('<%= dasherizedModuleName %>', 'helper:<%= dasherizedModuleNa test('it renders', function(assert) { this.set('inputValue', '1234'); - this.render(hbs`{{<%= dasherizedModuleName %> inputValue}}`); + this.render(hbs`{{<%= dasherizedModuleName %> this.inputValue}}`); assert.equal(this.$().text().trim(), '1234'); });<% } else if (testType == 'unit') { %> diff --git a/blueprints/helper-test/qunit-rfc-232-files/__root__/__testType__/__collection__/__name__-test.js b/blueprints/helper-test/qunit-rfc-232-files/__root__/__testType__/__collection__/__name__-test.js index 4ba1b477266..baf3d449ad1 100644 --- a/blueprints/helper-test/qunit-rfc-232-files/__root__/__testType__/__collection__/__name__-test.js +++ b/blueprints/helper-test/qunit-rfc-232-files/__root__/__testType__/__collection__/__name__-test.js @@ -10,7 +10,7 @@ module('<%= friendlyTestName %>', function(hooks) { test('it renders', async function(assert) { this.set('inputValue', '1234'); - await render(hbs`{{<%= dasherizedModuleName %> inputValue}}`); + await render(hbs`{{<%= dasherizedModuleName %> this.inputValue}}`); assert.dom(this.element).hasText('1234'); }); diff --git a/node-tests/fixtures/helper-test/integration.js b/node-tests/fixtures/helper-test/integration.js index ad4f7e3782b..9abe683c279 100644 --- a/node-tests/fixtures/helper-test/integration.js +++ b/node-tests/fixtures/helper-test/integration.js @@ -9,7 +9,7 @@ moduleForComponent('foo/bar-baz', 'helper:foo/bar-baz', { test('it renders', function(assert) { this.set('inputValue', '1234'); - this.render(hbs`{{foo/bar-baz inputValue}}`); + this.render(hbs`{{foo/bar-baz this.inputValue}}`); assert.equal(this.$().text().trim(), '1234'); }); diff --git a/node-tests/fixtures/helper-test/mocha-0.12.js b/node-tests/fixtures/helper-test/mocha-0.12.js index d2eb4578af0..b78ee50dc92 100644 --- a/node-tests/fixtures/helper-test/mocha-0.12.js +++ b/node-tests/fixtures/helper-test/mocha-0.12.js @@ -19,7 +19,7 @@ describe('Integration | Helper | foo/bar-baz', function() { // `); this.set('inputValue', '1234'); - this.render(hbs`{{foo/bar-baz inputValue}}`); + this.render(hbs`{{foo/bar-baz this.inputValue}}`); expect(this.$().text().trim()).to.equal('1234'); }); diff --git a/node-tests/fixtures/helper-test/mocha-rfc232.js b/node-tests/fixtures/helper-test/mocha-rfc232.js index 9944e574437..2337d5c74f2 100644 --- a/node-tests/fixtures/helper-test/mocha-rfc232.js +++ b/node-tests/fixtures/helper-test/mocha-rfc232.js @@ -11,7 +11,7 @@ describe('Integration | Helper | foo/bar-baz', function() { it('renders', async function() { this.set('inputValue', '1234'); - await render(hbs`{{foo/bar-baz inputValue}}`); + await render(hbs`{{foo/bar-baz this.inputValue}}`); expect(this.element.textContent.trim()).to.equal('1234'); }); diff --git a/node-tests/fixtures/helper-test/mocha.js b/node-tests/fixtures/helper-test/mocha.js index bece512a42d..9e3c985f0e6 100644 --- a/node-tests/fixtures/helper-test/mocha.js +++ b/node-tests/fixtures/helper-test/mocha.js @@ -19,7 +19,7 @@ describeComponent('foo/bar-baz', 'helper:foo/bar-baz', // `); this.set('inputValue', '1234'); - this.render(hbs`{{foo/bar-baz inputValue}}`); + this.render(hbs`{{foo/bar-baz this.inputValue}}`); expect(this.$().text().trim()).to.equal('1234'); }); diff --git a/node-tests/fixtures/helper-test/rfc232.js b/node-tests/fixtures/helper-test/rfc232.js index e1b7290a2f3..c39592e478c 100644 --- a/node-tests/fixtures/helper-test/rfc232.js +++ b/node-tests/fixtures/helper-test/rfc232.js @@ -10,7 +10,7 @@ module('Integration | Helper | foo/bar-baz', function(hooks) { test('it renders', async function(assert) { this.set('inputValue', '1234'); - await render(hbs`{{foo/bar-baz inputValue}}`); + await render(hbs`{{foo/bar-baz this.inputValue}}`); assert.dom(this.element).hasText('1234'); });