fix(ts_node): Fixed issues in HTTPS certificate generation for TapNodeTools

This commit is contained in:
2024-09-18 17:56:53 +02:00
parent 22ec504b0f
commit 0e80700481
7 changed files with 63 additions and 38 deletions

View File

@ -11,7 +11,7 @@ tap.test('should create a https cert', async () => {
const { key, cert } = await tapNodeTools.createHttpsCert('localhost');
console.log(key);
console.log(cert);
expect(key).toInclude('-----BEGIN PRIVATE KEY-----');
expect(key).toInclude('-----BEGIN RSA PRIVATE KEY-----');
expect(cert).toInclude('-----BEGIN CERTIFICATE-----');
});