1
0
mirror of https://github.com/invoiceninja/invoiceninja.git synced 2024-11-11 13:42:49 +01:00
invoiceninja/tests/cypress/support/assertions.js

4 lines
129 B
JavaScript
Raw Normal View History

2023-01-24 21:15:54 +01:00
Cypress.Commands.add('assertRedirect', path => {
cy.location('pathname').should('eq', `/${path}`.replace(/^\/\//, '/'));
});