()
| 19 | } |
| 20 | |
| 21 | async function generateCryptoKey() { |
| 22 | const { KeyObject } = require('node:crypto'); |
| 23 | const { subtle } = globalThis.crypto; |
| 24 | |
| 25 | const cryptoKey = await subtle.generateKey( |
| 26 | { |
| 27 | name: 'HMAC', |
| 28 | hash: 'SHA-256', |
| 29 | length: 256, |
| 30 | }, |
| 31 | true, |
| 32 | ['sign', 'verify'] |
| 33 | ); |
| 34 | |
| 35 | const keyObject = KeyObject.from(cryptoKey); |
| 36 | |
| 37 | return { cryptoKey, keyObject }; |
| 38 | } |
| 39 | |
| 40 | describe('Object Comparison Tests', () => { |
| 41 | describe('partialDeepStrictEqual', () => { |
no test coverage detected
searching dependent graphs…