Skip to content

Commit

Permalink
fix(cypress): pass {} as a parameter for /api/reset-db (#9355)
Browse files Browse the repository at this point in the history
  • Loading branch information
saschanaz committed Dec 19, 2022
1 parent 52cbe07 commit 72e7909
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion cypress/support/commands.js
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@ Cypress.Commands.add('resetState', () => {
cy.window(win => {
win.indexedDB.deleteDatabase('keyval-store');
});
cy.request('POST', '/api/reset-db').as('reset');
cy.request('POST', '/api/reset-db', {}).as('reset');
cy.get('@reset').its('status').should('equal', 204);
cy.reload(true);
});
Expand Down

0 comments on commit 72e7909

Please sign in to comment.