diff --git a/blueprints/component-test/mocha-0.12-files/__root__/__testType__/__path__/__test__.js b/blueprints/component-test/mocha-0.12-files/__root__/__testType__/__path__/__test__.js index 7a71be91675..52200d594e5 100644 --- a/blueprints/component-test/mocha-0.12-files/__root__/__testType__/__path__/__test__.js +++ b/blueprints/component-test/mocha-0.12-files/__root__/__testType__/__path__/__test__.js @@ -24,7 +24,7 @@ describe('<%= friendlyTestDescription %>', function() { <%= closeComponent(componentName) %> `); - assert.equal(this.$().text().trim(), 'template block text');<% } else if(testType === 'unit') { %>// creates the component instance + expect(this.$().text().trim()).to.equal('template block text');<% } else if(testType === 'unit') { %>// creates the component instance let component = this.subject(); // renders the component on the page this.render(); diff --git a/blueprints/component-test/mocha-files/__root__/__testType__/__path__/__test__.js b/blueprints/component-test/mocha-files/__root__/__testType__/__path__/__test__.js index 9abed0c0ff3..7dafcd4505e 100644 --- a/blueprints/component-test/mocha-files/__root__/__testType__/__path__/__test__.js +++ b/blueprints/component-test/mocha-files/__root__/__testType__/__path__/__test__.js @@ -23,7 +23,7 @@ describeComponent('<%= componentPathName %>', '<%= friendlyTestDescription %>', <%= closeComponent(componentName) %> `); - assert.equal(this.$().text().trim(), 'template block text');<% } else if(testType === 'unit') { %>// creates the component instance + expect(this.$().text().trim()).to.equal('template block text');<% } else if(testType === 'unit') { %>// creates the component instance let component = this.subject(); // renders the component on the page this.render(); diff --git a/node-tests/fixtures/component-test/mocha-0.12.js b/node-tests/fixtures/component-test/mocha-0.12.js index b2606869293..2cc9ca48a18 100644 --- a/node-tests/fixtures/component-test/mocha-0.12.js +++ b/node-tests/fixtures/component-test/mocha-0.12.js @@ -22,6 +22,6 @@ describe('Integration | Component | x-foo', function() { `); - assert.equal(this.$().text().trim(), 'template block text'); + expect(this.$().text().trim()).to.equal('template block text'); }); }); diff --git a/node-tests/fixtures/component-test/mocha.js b/node-tests/fixtures/component-test/mocha.js index 4dbbe9f15df..0d81e511bb2 100644 --- a/node-tests/fixtures/component-test/mocha.js +++ b/node-tests/fixtures/component-test/mocha.js @@ -21,7 +21,7 @@ describeComponent('x-foo', 'Integration | Component | x-foo', `); - assert.equal(this.$().text().trim(), 'template block text'); + expect(this.$().text().trim()).to.equal('template block text'); }); } );