mirror of
https://github.com/Xahau/xahau.js.git
synced 2025-11-20 12:15:51 +00:00
* Removed deprecated functions from client.ts * Renamed files to be camelCase * Created top-level utils folder and tied all sub-references to it * Grouped tests for those utils into their own section Co-authored-by: Nathan Nichols <natenichols@cox.net>
13 lines
357 B
TypeScript
13 lines
357 B
TypeScript
import assert from 'assert-diff'
|
|
import {TestSuite} from '../../testUtils'
|
|
|
|
export default <TestSuite>{
|
|
'returns true for valid secret': async (client, address) => {
|
|
assert(client.isValidSecret('snsakdSrZSLkYpCXxfRkS4Sh96PMK'))
|
|
},
|
|
|
|
'returns false for invalid secret': async (client, address) => {
|
|
assert(!client.isValidSecret('foobar'))
|
|
}
|
|
}
|