test(aio): minor improvements (#22872)

PR Close #22872
This commit is contained in:
George Kalpakas 2018-03-21 00:58:19 +02:00 committed by Matias Niemelä
parent 53227abe7b
commit 91503e538e
2 changed files with 2 additions and 5 deletions

View File

@ -180,7 +180,7 @@ describe('DocViewerComponent', () => {
const querySelector_ = targetEl.querySelector;
spyOn(targetEl, 'querySelector').and.callFake((selector: string) => {
const elem = querySelector_.call(targetEl, selector);
return Object.defineProperties(elem, {
return elem && Object.defineProperties(elem, {
innerText: {value: undefined},
textContent: {value: 'Text Content'},
});
@ -195,7 +195,7 @@ describe('DocViewerComponent', () => {
const querySelector_ = targetEl.querySelector;
spyOn(targetEl, 'querySelector').and.callFake((selector: string) => {
const elem = querySelector_.call(targetEl, selector);
return Object.defineProperties(elem, {
return elem && Object.defineProperties(elem, {
innerText: { value: '' },
textContent: { value: 'Text Content' }
});

View File

@ -15,9 +15,6 @@ module.exports = function (config) {
client:{
clearContext: false // leave Jasmine Spec Runner output visible in browser
},
files: [
{ pattern: './node_modules/@angular/material/prebuilt-themes/indigo-pink.css', included: true }
],
coverageIstanbulReporter: {
reports: [ 'html', 'lcovonly' ],
fixWebpackSourcePaths: true