Skip to content

Commit

Permalink
tests
Browse files Browse the repository at this point in the history
  • Loading branch information
OR13 committed Jan 21, 2024
1 parent 9df24f0 commit 756b7ce
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions tests/cose-sign1.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -5,8 +5,8 @@ import * as edn from '../src'
const testCase = JSON.parse(fs.readFileSync('./src/__fixtures__/ecdsa-examples/ecdsa-sig-02.json').toString())

it(testCase.title, async () => {
const graph1 = await edn.parse(testCase.output.cbor_diag) as edn.EDNSeq
expect(graph1.get(0).value.toString('hex')).toBe('a1013822')
const graph2 = await edn.parse(Buffer.from(testCase.output.cbor, 'hex')) as edn.EDNSeq
expect(graph2.get(0).value.toString('hex')).toBe('a1013822')
const graph1 = await edn.parse(testCase.output.cbor_diag) as edn.EDNCoseSign1
expect(graph1.seq.get(0).value.toString('hex')).toBe('a1013822')
const graph2 = await edn.parse(Buffer.from(testCase.output.cbor, 'hex')) as edn.EDNCoseSign1
expect(graph2.seq.get(0).value.toString('hex')).toBe('a1013822')
})

0 comments on commit 756b7ce

Please sign in to comment.