Skip to content

Commit dd87de6

Browse files
committed
chore: fix cypress 404 test
1 parent 56abd3a commit dd87de6

File tree

1 file changed

+1
-3
lines changed

1 file changed

+1
-3
lines changed

cypress/integration/default/api.spec.ts

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -5,8 +5,6 @@ describe('Extended API routes', () => {
55
})
66
})
77
it('returns 404 for scheduled route', () => {
8-
cy.request('/api/hello-scheduled').then((response) => {
9-
expect(response.status).to.equal(404)
10-
})
8+
cy.request({ url: '/api/hello-scheduled', failOnStatusCode: false }).its('status').should('equal', 404)
119
})
1210
})

0 commit comments

Comments
 (0)