Skip to content

Commit 24532dc

Browse files
ANKUR DWIVEDIANKUR DWIVEDI
authored andcommitted
update ci
1 parent 8105ef1 commit 24532dc

File tree

2 files changed

+7
-3
lines changed

2 files changed

+7
-3
lines changed

sdk/package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@
88
"build:app": "ng build",
99
"build": "ng build && npm run assets",
1010
"test": "ng test",
11-
"test:ci": "ng test --watch=false --no-progress --code--coverage && codecov",
11+
"test:ci": "ng test --watch=false --code--coverage && codecov",
1212
"test:e2e": "cypress open",
1313
"lint": "ng lint",
1414
"watch": "ng build --watch --configuration development",

sdk/tests/sdk-tests/ik-upload.component.spec.ts

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -686,10 +686,14 @@ describe("IkUploadComponent", () => {
686686
});
687687

688688
it('handleUploadResponse should handle an error', () => {
689+
let dummyFile: File = new File([""], "dummy-file-name");
690+
689691
const options = {
690692
onError: new EventEmitter<any>(),
691693
onSuccess: new EventEmitter<any>(),
692-
xhr: null
694+
xhr: null,
695+
file: dummyFile,
696+
fileName: 'dummyFile',
693697
};
694698

695699
// Mock the throwError method
@@ -699,7 +703,7 @@ describe("IkUploadComponent", () => {
699703
component.handleUploadResponse('error message', null, options, null);
700704

701705
// Expect that the throwError method was called with the error message and options
702-
// expect(component.throwError).toHaveBeenCalledWith('error message', options);
706+
expect(component.throwError).toHaveBeenCalledWith('error message', options);
703707

704708
// Expect that onSuccess EventEmitter was not emitted
705709
expect(options.onSuccess.observers.length).toBe(0);

0 commit comments

Comments
 (0)