Add tests for byteSize

Uses a workaround and a custom Blob implementation, but it should work just fine.
This commit is contained in:
Angelos Chalaris
2018-02-07 16:36:31 +02:00
parent 2b2e88738c
commit a7970d8a2c
3 changed files with 21 additions and 7 deletions

View File

@ -1,4 +1,4 @@
Test log for: Wed Feb 07 2018 12:22:33 GMT+0200 (GTB Standard Time)
Test log for: Wed Feb 07 2018 16:35:36 GMT+0200 (GTB Standard Time)
> 30-seconds-of-code@0.0.1 test G:\My Files\git Repositories\30-seconds-of-code
> tape test/**/*.test.js | tap-spec
@ -88,6 +88,9 @@ Test log for: Wed Feb 07 2018 12:22:33 GMT+0200 (GTB Standard Time)
Testing byteSize
√ byteSize is a Function
√ Works for a single letter
√ Works for a common string
√ Works for emoji
Testing call
@ -1746,8 +1749,8 @@ Test log for: Wed Feb 07 2018 12:22:33 GMT+0200 (GTB Standard Time)
√ Works with multiple promises
total: 844
passing: 844
total: 847
passing: 847
duration: 2.4s