You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I just ran the Hello world module of the webshop. The simplest test case failed with error Error: expected "Content-Length" of "11", got "11". The complete error log mentioned below.
Hello World
1) should return hello world
0 passing (24ms)
1 failing
1) Hello World
should return hello world:
Error: expected "Content-Length" of "11", got "11"
at Test._assertHeader (D:\projects\techonology\node\koa\workshop\node_modules\supertest\lib\test.js:247:12)
at Test._assertFunction (D:\projects\techonology\node\koa\workshop\node_modules\supertest\lib\test.js:281:11)
at Test.assert (D:\projects\techonology\node\koa\workshop\node_modules\supertest\lib\test.js:171:18)
at assert (D:\projects\techonology\node\koa\workshop\node_modules\supertest\lib\test.js:131:12)
at D:\projects\techonology\node\koa\workshop\node_modules\supertest\lib\test.js:128:5
at Test.Request.callback (D:\projects\techonology\node\koa\workshop\node_modules\superagent\lib\node\index.js:706:12)
at IncomingMessage.parser (D:\projects\techonology\node\koa\workshop\node_modules\superagent\lib\node\index.js:906:18)
at endReadableNT (_stream_readable.js:1101:12)
at process._tickCallback (internal/process/next_tick.js:114:19)
The text was updated successfully, but these errors were encountered:
This threw me off, too at first. I updated the test to check for the string "11" and then the test passed. Is this an issue with the test itself or is this caused by a change in the underlying assertion library?
I just ran the Hello world module of the webshop. The simplest test case failed with error
Error: expected "Content-Length" of "11", got "11"
. The complete error log mentioned below.The text was updated successfully, but these errors were encountered: