Files
toolkit/packages/attest/__tests__/attest.test.ts
T
Daniel Kennedy f94d96c596 test: fix deprecated Jest matchers for v30
- Replace toThrowError() with toThrow()
- Replace toBeCalledWith() with toHaveBeenCalledWith()
- Update snapshots
2026-01-30 09:44:37 -05:00

17 lines
427 B
TypeScript

import {attest} from '../src/attest'
describe('attest', () => {
describe('when no subject information is provided', () => {
it('throws an error', async () => {
const options = {
predicateType: 'foo',
predicate: {bar: 'baz'},
token: 'token'
}
expect(attest(options)).rejects.toThrow(
'Must provide either subjectName and subjectDigest or subjects'
)
})
})
})