Skip to content

Commit

Permalink
Update unexpected to ^11.5.0, adjust expected error messages involvin…
Browse files Browse the repository at this point in the history
…g Buffers
  • Loading branch information
papandreou committed May 10, 2019
1 parent 78d217b commit 7e6fe49
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion package.json
Expand Up @@ -48,7 +48,7 @@
"nyc": "^14.0.0",
"prettier": "~1.17.0",
"sinon": "^7.0.0",
"unexpected": "^11.0.0-3",
"unexpected": "^11.5.0",
"unexpected-documentation-site-generator": "^6.0.0",
"unexpected-markdown": "^3.0.0",
"unexpected-stream": "^3.0.0"
Expand Down
4 changes: 2 additions & 2 deletions test/unexpectedExpress.js
Expand Up @@ -285,7 +285,7 @@ describe('unexpectedExpress', () => {
'expected express app to yield exchange satisfying\n' +
'{\n' +
" request: '/foo/bar/',\n" +
' response: { rawBody: Buffer([0x62, 0x61, 0x72, 0x66, 0x6F, 0x6F]) }\n' +
' response: { rawBody: Buffer.from([0x62, 0x61, 0x72, 0x66, 0x6F, 0x6F]) }\n' +
'}\n' +
'\n' +
'GET /foo/bar/ HTTP/1.1\n' +
Expand All @@ -299,7 +299,7 @@ describe('unexpectedExpress', () => {
'Connection: keep-alive\n' +
'\n' +
'foobar\n' +
'// should have raw body satisfying Buffer([0x62, 0x61, 0x72, 0x66, 0x6F, 0x6F])\n' +
'// should have raw body satisfying Buffer.from([0x62, 0x61, 0x72, 0x66, 0x6F, 0x6F])\n' +
'// -66 6F 6F 62 61 72 │foobar│\n' +
'// +62 61 72 66 6F 6F │barfoo│'
));
Expand Down

0 comments on commit 7e6fe49

Please sign in to comment.