Skip to content

Commit 4f9dd7b

Browse files
committed
Fixed test failing due o order of added Accept header
1 parent 7f68a43 commit 4f9dd7b

File tree

1 file changed

+8
-0
lines changed

1 file changed

+8
-0
lines changed

test/unit/convertV2.test.js

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2020,6 +2020,10 @@ describe('The convert v2 Function', function() {
20202020
expect(item.request.header[0].key).to.eql('Accept');
20212021
expect(item.request.header[0].value).to.eql('application/json');
20222022
expect(item.response[0].originalRequest.header[0]).to.be.eql({
2023+
key: 'Accept',
2024+
value: 'application/json'
2025+
});
2026+
expect(item.response[0].originalRequest.header[1]).to.be.eql({
20232027
description: {
20242028
content: 'Added as a part of security scheme: apikey',
20252029
type: 'text/plain'
@@ -2071,6 +2075,10 @@ describe('The convert v2 Function', function() {
20712075
expect(item.request.header[0].key).to.eql('Accept');
20722076
expect(item.request.header[0].value).to.eql('application/json');
20732077
expect(item.response[0].originalRequest.header[0]).to.be.eql({
2078+
key: 'Accept',
2079+
value: 'application/json'
2080+
});
2081+
expect(item.response[0].originalRequest.header[1]).to.be.eql({
20742082
description: {
20752083
content: 'Added as a part of security scheme: oauth1',
20762084
type: 'text/plain'

0 commit comments

Comments
 (0)