mirror of
https://github.com/n8n-io/n8n.git
synced 2025-01-08 11:27:30 -08:00
12 lines
438 B
TypeScript
12 lines
438 B
TypeScript
|
import { generateSshKeyPair } from '../../src/environments/versionControl/versionControlHelper';
|
||
|
|
||
|
describe('Version Control', () => {
|
||
|
it('should generate an SSH key pair', () => {
|
||
|
const keyPair = generateSshKeyPair();
|
||
|
expect(keyPair.privateKey).toBeTruthy();
|
||
|
expect(keyPair.privateKey).toContain('BEGIN OPENSSH PRIVATE KEY');
|
||
|
expect(keyPair.publicKey).toBeTruthy();
|
||
|
expect(keyPair.publicKey).toContain('ssh-ed25519');
|
||
|
});
|
||
|
});
|