We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 8f312f1 commit 5f582b2Copy full SHA for 5f582b2
cypress/integration/default/api.spec.ts
@@ -0,0 +1,12 @@
1
+describe('Extended API routes', () => {
2
+ it('returns HTTP 202 Accepted for background route', () => {
3
+ cy.request('/api/hello-background').then((response) => {
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
11
12
+})
0 commit comments