UNPKG

@sd-jwt/utils

Version:
16 lines (14 loc) 419 B
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"}', ); } }); });