Skip to content

Commit 5f582b2

Browse files
committed
chore: add e2e tests for extended API routes
1 parent 8f312f1 commit 5f582b2

File tree

1 file changed

+12
-0
lines changed

1 file changed

+12
-0
lines changed
+12
Original file line numberDiff line numberDiff line change
@@ -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

Comments
 (0)