Ombi/tests/cypress/support/mock-data.commands.ts
2022-12-02 15:37:32 +00:00

15 lines
328 B
TypeScript

Cypress.Commands.add('addMock', (mapping) => {
cy.request({
method: 'POST',
url: 'http://localhost:32400/__admin/mappings',
body: mapping
})
})
Cypress.Commands.add('clearMocks', () => {
cy.request({
method: 'DELETE',
url: 'http://localhost:32400/__admin/mappings'
})
})