diff --git a/tests/cypress/support/commands.js b/tests/cypress/support/commands.js index 7dac05153f4..18abaf8ada4 100644 --- a/tests/cypress/support/commands.js +++ b/tests/cypress/support/commands.js @@ -344,7 +344,7 @@ Cypress.Commands.add('headlessDeleteTask', (taskID) => { }); }); -Cypress.Commands.add('headlessCreateUser', (userSpec) => { +Cypress.Commands.add('headlessCreateUser', (userSpec) => ( cy.request({ method: 'POST', url: '/api/auth/register', @@ -365,8 +365,8 @@ Cypress.Commands.add('headlessCreateUser', (userSpec) => { expect(response.body.username).to.eq(userSpec.username); expect(response.body.email).to.eq(userSpec.email); return cy.wrap(); - }); -}); + }) +)); Cypress.Commands.add('headlessLogout', () => { cy.clearCookies();