blockstack
Version:
The Blockstack Javascript library for authentication, identity, and storage.
15 lines (11 loc) • 351 B
JavaScript
import test from 'tape-promise/tape'
import { InvalidDIDError } from '../../../lib/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(error.param, undefined)
})
}