Skip to content

Commit f1ae602

Browse files
committed
test: fix cypress assertion
1 parent f46be95 commit f1ae602

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

cypress/integration/default/appdir.spec.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -52,15 +52,15 @@ describe('appDir', () => {
5252

5353
it('correctly redirects HTML requests for ISR pages', () => {
5454
cy.request('/blog/erica').then((response) => {
55-
expect(response.status).to.be('308')
55+
expect(response.status).to.equal('308')
5656
expect(response.headers).to.have.property('location', '/blog/erica/')
5757
})
5858
})
5959

6060
// This needs trailing slash handling to be fixed
6161
it.skip('correctly redirects HTML requests for static pages', () => {
6262
cy.request('/blog/erica/first-post').then((response) => {
63-
expect(response.status).to.be('308')
63+
expect(response.status).to.equal('308')
6464
expect(response.headers).to.have.property('location', '/blog/erica/first-post/')
6565
})
6666
})

0 commit comments

Comments
 (0)