1
0
forked from mirror/misskey

fix(cypress): pass {} as a parameter for /api/reset-db (#9355)

This commit is contained in:
Kagami Sascha Rosylight 2022-12-19 15:15:28 +09:00 committed by GitHub
parent 52cbe07a78
commit 72e7909911
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -28,7 +28,7 @@ Cypress.Commands.add('resetState', () => {
cy.window(win => { cy.window(win => {
win.indexedDB.deleteDatabase('keyval-store'); 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.get('@reset').its('status').should('equal', 204);
cy.reload(true); cy.reload(true);
}); });