body
body copied to clipboard
update dependency versions
raw-body ~1.1.0 → ~2.1.6
safe-json-parse ~1.0.1 → ~4.0.0
after ~0.7.0 → ~0.8.1
test-server ~0.1.3 → ~0.2.1
send-data ~1.0.1 → ~8.0.0
tape ~2.3.0 → ~4.5.1
process ~0.5.1 → ~0.11.2
error ^7.0.0 → ^7.0.2
hammock ^1.0.0 → ^1.1.0
$ npm test
> [email protected] test /Users/aleksey/body
> node ./test/index.js
TAP version 13
# caching works
ok 1 raw body has been set
ok 2 body is parsed
ok 3 cached body is provided
ok 4 body is parsed
# parallel caching works
ok 5 raw body has been set
ok 6 body is parsed
ok 7 raw body has been set
ok 8 body is parsed
ok 9 raw body has been set
ok 10 body is parsed
ok 11 raw body has been set
ok 12 body is parsed
ok 13 raw body has been set
ok 14 body is parsed
ok 15 rawBody listeners cleared
# body works
ok 16 error is not null
body "foo" foo
ok 17 body is incorrect
ok 18 should be equal
ok 19 should be equal
# form works
ok 20 error is not null
ok 21 body is incorrect
ok 22 error is not null
ok 23 body is incorrect
# json works
ok 24 error is not null
ok 25 body is incorrect
ok 26 error is not null
ok 27 body is incorrect
1..27
# tests 27
# pass 27
# ok