Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion karma.conf.js
Original file line number Diff line number Diff line change
Expand Up @@ -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'],
Expand Down
6 changes: 3 additions & 3 deletions src/cloudinary-image.component.spec.ts
Original file line number Diff line number Diff line change
Expand Up @@ -50,7 +50,7 @@ describe('CloudinaryImage', () => {
@Component({
template: `<cl-image responsive id="image1" public-id="responsive_sample.jpg">
<cl-transformation width="300" crop="scale" overlay="text:roboto_25_bold:SDK"></cl-transformation>
<cl-transformation effect="art:hokusai"></cl-transformation>
<cl-transformation effect="art:hokusai" gravity="auto"></cl-transformation>
<cl-transformation fetch-format="auto"></cl-transformation>
</cl-image>`
})
Expand All @@ -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/));
});
});

Expand Down