Skip to content

Commit

Permalink
test test case
Browse files Browse the repository at this point in the history
  • Loading branch information
manu4543 committed May 20, 2024
1 parent 34312ff commit 7ed098c
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions tests/cypress/integration/IKUpload.cy.js
Original file line number Diff line number Diff line change
Expand Up @@ -27,6 +27,7 @@ describe('IKUpload Element', () => {
const stateValue = JSON.parse(val);
expect(stateValue.overrideParametersValue.fileNameOnLocalSystem).to.be.eq("sample.jpeg"); // This asserts that the file object was passed to the onOverrideParameters callback
expect(stateValue.uploadedImageSource).contains("sample-folder/overridden-file-name"); // This asserts that onOverrideParameters changed fileName parameter before upload
expect(stateValue.uploadedImageSource).contains("failed"); // Temp to see if assertions are working
});
});

Expand Down

0 comments on commit 7ed098c

Please sign in to comment.