Skip to content

Commit

Permalink
fix(whook-swagger-ui): Remove server version for tests
Browse files Browse the repository at this point in the history
The server version would change at each update otherwise
  • Loading branch information
nfroidure committed Feb 13, 2019
1 parent 0c549fe commit 74127be
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -234,7 +234,7 @@ Object {
"date": undefined,
"etag": undefined,
"last-modified": undefined,
"server": "ecstatic-3.3.0",
"server": undefined,
},
"logErrorCalls": Array [
Array [
Expand Down Expand Up @@ -343,6 +343,9 @@ Object {
"connection": "close",
"content-type": "application/json",
"date": undefined,
"etag": undefined,
"last-modified": undefined,
"server": undefined,
"transaction-id": "0",
"transfer-encoding": "chunked",
},
Expand Down
4 changes: 4 additions & 0 deletions packages/whook-swagger-ui/src/index.test.js
Original file line number Diff line number Diff line change
Expand Up @@ -112,6 +112,9 @@ describe('wrapHTTPRouterWithSwaggerUI', () => {
...headers,
// Erasing the Date header that may be added by Axios :/
date: {}.undef,
etag: {}.undef,
'last-modified': {}.undef,
server: {}.undef,
},
data,

Expand Down Expand Up @@ -154,6 +157,7 @@ describe('wrapHTTPRouterWithSwaggerUI', () => {
date: {}.undef,
etag: {}.undef,
'last-modified': {}.undef,
server: {}.undef,
},
data,

Expand Down

0 comments on commit 74127be

Please sign in to comment.