Skip to content

Commit 29e5502

Browse files
committed
chore: removed header override testing
1 parent 983c8fe commit 29e5502

File tree

1 file changed

+1
-8
lines changed

1 file changed

+1
-8
lines changed

cypress/e2e/middleware/enhanced.cy.ts

Lines changed: 1 addition & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -7,19 +7,12 @@ describe('Enhanced middleware', () => {
77

88
it('modifies the page props when using request.rewrite()', () => {
99
cy.visit('/request-rewrite')
10-
const data = cy.get('script#__NEXT_DATA__').then((element) => {
10+
cy.get('script#__NEXT_DATA__').then((element) => {
1111
const { props } = JSON.parse(element.text());
1212
expect(props.pageProps.message).to.include('This was static (& escaping test &) but has been transformed in')
1313
})
1414
})
1515

16-
it.skip('passes in headers within request.rewrite()', () => {
17-
cy.request('/request-rewrite').then((response) => {
18-
expect(response.headers).to.have.property('x-rewrite-test', 'hello')
19-
})
20-
})
21-
22-
2316
it('rewrites the response body using request.next()', () => {
2417
cy.visit('/static')
2518
cy.get('#message').contains('This was static (& escaping test &) but has been transformed in')

0 commit comments

Comments
 (0)