@sd-jwt/utils
Version:
sd-jwt draft 7 implementation in typescript
16 lines (14 loc) • 419 B
text/typescript
import { SDJWTException } from '../error';
import { describe, expect, test } from 'vitest';
describe('Error tests', () => {
test('Detail', () => {
try {
throw new SDJWTException('msg', { info: 'details' });
} catch (e: unknown) {
const exception = e as SDJWTException;
expect(exception.getFullMessage()).toEqual(
'SDJWTException: msg - {"info":"details"}',
);
}
});
});