mirror of
https://github.com/n8n-io/n8n.git
synced 2024-12-28 05:59:42 -08:00
71ed1f410c
* basic prefs and ssh key generation * review change * cleanup save * lint fix
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');
|
|
});
|
|
});
|