mirror of
https://github.com/danbulant/jose
synced 2026-05-25 04:51:47 +00:00
test: fix secp256k1 tests
This commit is contained in:
parent
16727dc89e
commit
98cdad46ee
1 changed files with 3 additions and 0 deletions
|
|
@ -35,6 +35,9 @@ Object.entries({
|
|||
let ECDH = ['ECDH-ES', 'ECDH-ES+A128KW', 'ECDH-ES+A192KW', 'ECDH-ES+A256KW']
|
||||
if ('electron' in process.versions) {
|
||||
if (crv === 'secp256k1') return
|
||||
ECDH.splice(1, ECDH.length - 1)
|
||||
}
|
||||
if (crv === 'secp256k1') {
|
||||
ECDH = []
|
||||
}
|
||||
if (crv === 'secp256k1' && 'electron' in process.versions) return
|
||||
|
|
|
|||
Loading…
Reference in a new issue