diff --git a/templates/Angular2Spa/ClientApp/app/components/counter/counter.component.spec.ts b/templates/Angular2Spa/ClientApp/app/components/counter/counter.component.spec.ts index 7eee369..61e49bc 100644 --- a/templates/Angular2Spa/ClientApp/app/components/counter/counter.component.spec.ts +++ b/templates/Angular2Spa/ClientApp/app/components/counter/counter.component.spec.ts @@ -13,7 +13,7 @@ describe('Counter component', () => { }); it('should display a title', async(() => { - const titleText = fixture.nativeElement.querySelector('h2').textContent; + const titleText = fixture.nativeElement.querySelector('h1').textContent; expect(titleText).toEqual('Counter'); })); diff --git a/templates/Angular2Spa/ClientApp/test/karma.conf.js b/templates/Angular2Spa/ClientApp/test/karma.conf.js index e8162c4..a1b4c39 100644 --- a/templates/Angular2Spa/ClientApp/test/karma.conf.js +++ b/templates/Angular2Spa/ClientApp/test/karma.conf.js @@ -18,6 +18,7 @@ module.exports = function (config) { logLevel: config.LOG_INFO, autoWatch: true, browsers: ['Chrome'], + mime: { 'application/javascript': ['ts','tsx'] }, singleRun: false, webpack: require('../../webpack.config.js').filter(config => config.target !== 'node'), // Test against client bundle, because tests run in a browser webpackMiddleware: { stats: 'errors-only' }