Skip to content

Commit 048e08c

Browse files
author
Kelly Selden
committed
add x-fastboot-path assertions
1 parent a7f9d9c commit 048e08c

1 file changed

Lines changed: 2 additions & 0 deletions

File tree

test/fastboot-location-test.js

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -73,6 +73,7 @@ describe('FastBootLocation', function () {
7373
'x-fastboot-path'
7474
]);
7575
expect(response.headers.location).to.equal('http://localhost:49741/test-passed');
76+
expect(response.headers['x-fastboot-path']).to.equal('/test-passed');
7677
expect(response.body).to.contain('Redirecting to');
7778
expect(response.body).to.contain('/test-passed');
7879
});
@@ -92,6 +93,7 @@ describe('FastBootLocation', function () {
9293
'x-fastboot-path'
9394
]);
9495
expect(response.headers.location).to.equal('http://localhost:49741/test-passed');
96+
expect(response.headers['x-fastboot-path']).to.equal('/test-passed');
9597
expect(response.body).to.contain('Redirecting to');
9698
expect(response.body).to.contain('/test-passed');
9799
});

0 commit comments

Comments
 (0)