Test harness for Javascript libsodium implementations
npm install sodium-testTest harness for Javascript libsodium implementations
``sh`
npm install sodium-test
`js
require('sodium-test')(require('sodium-native'))
`
The above will test that sodium-native passes all the sodium-test tests andstdio
write results in TAP format to .
harness(sodiumApi)
Will run tests on sodiumApi and assert whether it conforms to the libsodiumrequire('randombytes_buf')(sodiumApi)
API. Individual subAPI's can be tested, and all follow the same pattern, eg..
Findings are written to stdio`.