mirror of
https://github.com/Xahau/xahau.js.git
synced 2025-11-28 16:15:49 +00:00
move the remaining RippleAPI tests to the new test runner
This commit is contained in:
12
test/api/isValidSecret/index.ts
Normal file
12
test/api/isValidSecret/index.ts
Normal file
@@ -0,0 +1,12 @@
|
||||
import assert from 'assert-diff'
|
||||
import { TestSuite } from '../../utils'
|
||||
|
||||
export default <TestSuite>{
|
||||
'returns true for valid secret': async (api, address) => {
|
||||
assert(api.isValidSecret('snsakdSrZSLkYpCXxfRkS4Sh96PMK'))
|
||||
},
|
||||
|
||||
'returns false for invalid secret': async (api, address) => {
|
||||
assert(!api.isValidSecret('foobar'))
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user