diff --git a/karma.conf.js b/karma.conf.js index 60065087..5eba285a 100644 --- a/karma.conf.js +++ b/karma.conf.js @@ -86,7 +86,7 @@ module.exports = function (config) { "/app/": appAssets }, - exclude: [], + exclude: ['node_modules/**/*spec.js', 'node_modules/**/*spec.ts'], preprocessors: {}, // disabled HtmlReporter; suddenly crashing w/ strange socket error reporters: ['progress', 'kjhtml'],//'html'], diff --git a/src/cloudinary-image.component.spec.ts b/src/cloudinary-image.component.spec.ts index f7780d49..c223cfdb 100644 --- a/src/cloudinary-image.component.spec.ts +++ b/src/cloudinary-image.component.spec.ts @@ -50,7 +50,7 @@ describe('CloudinaryImage', () => { @Component({ template: ` - + ` }) @@ -74,9 +74,9 @@ describe('CloudinaryImage', () => { it('creates an img element which encodes the directive attributes to the URL', () => { const img = des.children[0].nativeElement as HTMLImageElement; expect(img.src).toEqual(jasmine.stringMatching - (/c_scale,l_text:roboto_25_bold:SDK,w_300\/e_art:hokusai\/f_auto\/responsive_sample.jpg/)); + (/c_scale,l_text:roboto_25_bold:SDK,w_300\/e_art:hokusai,g_auto\/f_auto\/responsive_sample.jpg/)); expect(img.attributes.getNamedItem('data-src').value).toEqual(jasmine.stringMatching( - /c_scale,l_text:roboto_25_bold:SDK,w_300\/e_art:hokusai\/f_auto\/responsive_sample.jpg/)); + /c_scale,l_text:roboto_25_bold:SDK,w_300\/e_art:hokusai,g_auto\/f_auto\/responsive_sample.jpg/)); }); });