Skip to content

Commit

Permalink
Refactoring for readability
Browse files Browse the repository at this point in the history
Co-authored-by: hlomzik <[email protected]>
  • Loading branch information
Gondragos and hlomzik authored Jun 27, 2024
1 parent d299e20 commit 5007e0d
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions web/libs/editor/tests/integration/e2e/drafts/submit.cy.ts
Original file line number Diff line number Diff line change
Expand Up @@ -31,6 +31,9 @@ describe("Annotation submitting process", () => {
</View>`)
// To have "new" annotation we need to use userGenerate
.withAnnotation({ userGenerate: true, result: [] })
.withEventListener("submitAnnotation", () => {
callApi(RESPONSE_TYPE.SUBMIT);
})
.withEventListener("submitDraft", () => {
return new Promise<void>((resolve) => {
// initialize saving annotation exactly when request of saving draft should be sent to the server
Expand All @@ -43,9 +46,6 @@ describe("Annotation submitting process", () => {
}, RESPONSE_DELAY);
});
})
.withEventListener("submitAnnotation", () => {
callApi(RESPONSE_TYPE.SUBMIT);
})
.init();

// just to have something to save
Expand Down

0 comments on commit 5007e0d

Please sign in to comment.