We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 56abd3a commit 00a80a7Copy full SHA for 00a80a7
cypress/integration/default/api.spec.ts
@@ -4,9 +4,7 @@ describe('Extended API routes', () => {
4
expect(response.status).to.equal(202)
5
})
6
7
- it('returns 404 for scheduled route', () => {
8
- cy.request('/api/hello-scheduled').then((response) => {
9
- expect(response.status).to.equal(404)
10
- })
+ it('correctly returns 404 for scheduled route', () => {
+ cy.request({ url: '/api/hello-scheduled', failOnStatusCode: false }).its('status').should('equal', 404)
11
12
0 commit comments