aladinnetwork-blockstack
Version:
The Aladin Javascript library for authentication, identity, and storage.
15 lines (11 loc) • 358 B
text/typescript
import test from 'tape-promise/tape'
import { InvalidDIDError } from '../../../src/errors'
export function runErrorsTests() {
test('InvalidDIDError', (t) => {
t.plan(3)
const error = new InvalidDIDError('the message')
t.equal(error.message, 'the message')
t.equal(error.parameter, null)
t.equal((<any>error).param, undefined)
})
}