Files
self/sdk/core/tests/proof.test.ts
Justin Hernandez 61d405f93e [SELF-662] feat: add mobile sdk error classes (#916)
* feat: add typed errors

* docs: add jsdoc comments to error classes

* docs: document sdk error helpers

* pr feedback
2025-08-19 08:10:27 -07:00

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);
});