mirror of
https://github.com/linux-odyssey/linux-odyssey.git
synced 2026-11-05 19:20:12 +08:00
10 lines
280 B
TypeScript
10 lines
280 B
TypeScript
import { generateKeyPair } from '../../src/utils/crypto'
|
|
|
|
describe('generateKeyPair', () => {
|
|
it('should generate a key pair', () => {
|
|
const keyPair = generateKeyPair()
|
|
expect(keyPair).toHaveProperty('privateKey')
|
|
expect(keyPair).toHaveProperty('publicKey')
|
|
})
|
|
})
|