mirror of
https://github.com/selfxyz/self.git
synced 2026-01-14 00:58:07 -05:00
* feat: add typed errors * docs: add jsdoc comments to error classes * docs: document sdk error helpers * pr feedback
9 lines
329 B
TypeScript
9 lines
329 B
TypeScript
import test from 'node:test';
|
|
import assert from 'node:assert';
|
|
import { getRevealedDataPublicSignalsLength } from '../src/utils/proof.js';
|
|
import { ProofError } from '../src/errors/index.js';
|
|
|
|
test('throws on invalid attestation id', () => {
|
|
assert.throws(() => getRevealedDataPublicSignalsLength(99 as any), ProofError);
|
|
});
|