Add tests for byteSize
Uses a workaround and a custom Blob implementation, but it should work just fine.
This commit is contained in:
@ -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
|
||||
|
||||
|
||||
|
||||
Reference in New Issue
Block a user