mirror of
https://github.com/fluencelabs/js-libp2p-interfaces
synced 2025-08-01 01:12:18 +00:00
add base test setup
This commit is contained in:
15
tests/base-test.js
Normal file
15
tests/base-test.js
Normal file
@@ -0,0 +1,15 @@
|
||||
module.exports.all = function (test, common) {
|
||||
|
||||
test('Store a valid record', function (t) {
|
||||
common.setup(test, function (err, recordStore) {
|
||||
t.ifError(err, 'Should not throw')
|
||||
t.pass('woo')
|
||||
})
|
||||
})
|
||||
|
||||
test('Store an unvalid record')
|
||||
test('Store and retrieve a valid record')
|
||||
test('Store a bunch of valid and unvalid records and check what gets retrieved')
|
||||
test('Store a bunch of records with variable validity, wait for some to expire, check what gets retrieved')
|
||||
|
||||
}
|
Reference in New Issue
Block a user