Level / level-js

An abstract-leveldown compliant store on top of IndexedDB.
MIT License
544 stars 44 forks source link

Add Buffer to structured-clone-test and key-type-test #145

Closed vweevers closed 6 years ago

vweevers commented 6 years ago

While writing docs I realized there's a gap in the tests. It doesn't test what happens to a Buffer when you get it with asBuffer: false (should be a Uint8Array if a value, and a ArrayBuffer if a key).

vweevers commented 6 years ago

In addition, there should be a test to put an ArrayBuffer and get it with asBuffer: true.