mirror of
https://github.com/fluencelabs/js-libp2p-crypto
synced 2025-06-22 12:51:40 +00:00
chore: add error codes (#155)
* chore: add error codes * chore: create errors with new Error() * fix: better error testin * refactor: simplify random bytes error checks
This commit is contained in:
@ -29,12 +29,4 @@ function doTests (fncName, fnc, num, skipBuffersAndStrings) {
|
||||
})
|
||||
}
|
||||
|
||||
module.exports = (obj, fncs, num) => {
|
||||
describe('returns error via cb instead of crashing', () => {
|
||||
fncs.forEach(fnc => {
|
||||
doTests(fnc, obj[fnc], num)
|
||||
})
|
||||
})
|
||||
}
|
||||
|
||||
module.exports.doTests = doTests
|
||||
module.exports = { doTests }
|
||||
|
Reference in New Issue
Block a user