get a clean levelup instance for testing.
inject different level implementations (browser, leveldb, etc) into your tests.
Create a fresh db, with out refering to any fs or dom specifics, so that the same test can be used in the server or the browser!
var level =var db =
var level = mem: truevar db =
Use whatever test framework you like!
A custom backend for
levelup can be provided via the options object:
var hyper =var level = db: hypervar db =
Currently supported options:
configure leveldb settings via command line options/enviroment vars.