Skip to content

Commit

Permalink
wiup
Browse files Browse the repository at this point in the history
  • Loading branch information
hiroppy committed Apr 3, 2020
1 parent b5d37c4 commit 7653c9f
Showing 1 changed file with 10 additions and 6 deletions.
16 changes: 10 additions & 6 deletions test/middleware.test.js
Original file line number Diff line number Diff line change
Expand Up @@ -775,12 +775,16 @@ describe('middleware', () => {
for (const { value, contentType, code } of urls) {
// eslint-disable-next-line no-loop-func
it(`should return the "${code}" code for the "GET" request for the "${value}" url`, (done) => {
console.log('aaaa');
request(app)
.get(`${publicPathForRequest}${value}`)
.expect('Content-Type', contentType)
.expect('Content-Length', data ? String(data.length) : /\d+/)
.expect(code, done);
setImmediate(() => {
request(app)
.get(`${publicPathForRequest}${value}`)
.expect('Content-Type', contentType)
.expect(
'Content-Length',
data ? String(data.length) : /\d+/
)
.expect(code, done);
});
});
}
}
Expand Down

0 comments on commit 7653c9f

Please sign in to comment.