File tree Expand file tree Collapse file tree 1 file changed +1
-8
lines changed Expand file tree Collapse file tree 1 file changed +1
-8
lines changed Original file line number Diff line number Diff line change @@ -7,19 +7,12 @@ describe('Enhanced middleware', () => {
7
7
8
8
it ( 'modifies the page props when using request.rewrite()' , ( ) => {
9
9
cy . visit ( '/request-rewrite' )
10
- const data = cy . get ( 'script#__NEXT_DATA__' ) . then ( ( element ) => {
10
+ cy . get ( 'script#__NEXT_DATA__' ) . then ( ( element ) => {
11
11
const { props } = JSON . parse ( element . text ( ) ) ;
12
12
expect ( props . pageProps . message ) . to . include ( 'This was static (& escaping test &) but has been transformed in' )
13
13
} )
14
14
} )
15
15
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
-
23
16
it ( 'rewrites the response body using request.next()' , ( ) => {
24
17
cy . visit ( '/static' )
25
18
cy . get ( '#message' ) . contains ( 'This was static (& escaping test &) but has been transformed in' )
You can’t perform that action at this time.
0 commit comments