Skip to content

Commit

Permalink
Be less specific about the error message, fixing the new test with no…
Browse files Browse the repository at this point in the history
…de.js 0.10.
  • Loading branch information
papandreou committed Feb 25, 2017
1 parent d933230 commit 896550b
Showing 1 changed file with 1 addition and 15 deletions.
16 changes: 1 addition & 15 deletions test/unexpectedMitm.js
Expand Up @@ -2374,21 +2374,7 @@ describe('unexpectedMitm', function () {
mocks.push({request: 'GET /', response: 200});
issueGetAndConsume('http://www.example.com/', cb);
}, 'with http mocked out', mocks, 'to call the callback without error');
}, 'to error with',
"expected\n" +
"function (cb) {\n" +
" mocks.push({request: 'GET /', response: 200});\n" +
" issueGetAndConsume('http://www.example.com/', cb);\n" +
"}\n" +
"with http mocked out [ { request: 'GET /', response: 200 } ] to call the callback without error\n" +
"\n" +
"// should be removed:\n" +
"// GET / HTTP/1.1\n" +
"// Host: www.example.com\n" +
"// Connection: close\n" +
"//\n" +
"// <no response>"
);
}, 'to error with', /\/\/ should be removed:/);
});
});
});

0 comments on commit 896550b

Please sign in to comment.