mirror of
https://github.com/selfxyz/self.git
synced 2026-01-14 09:08:03 -05:00
* feat: add typed errors * docs: add jsdoc comments to error classes * docs: document sdk error helpers * pr feedback
14 lines
503 B
TypeScript
14 lines
503 B
TypeScript
import test from 'node:test';
|
|
import assert from 'node:assert';
|
|
import { RegistryContractError, VerifierContractError } from '../src/errors/index.js';
|
|
|
|
test('creates registry contract error', () => {
|
|
const err = new RegistryContractError('Registry contract not found');
|
|
assert.equal(err.name, 'RegistryContractError');
|
|
});
|
|
|
|
test('creates verifier contract error', () => {
|
|
const err = new VerifierContractError('Verifier contract not found');
|
|
assert.equal(err.name, 'VerifierContractError');
|
|
});
|