Fixed SSL test failing

This commit is contained in:
Danielv123 committed 2018-01-15 17:16:14 +01:00
1 parent 0688184aaf
commit fdd8a8299b
2 files changed
+10 -6

No files matched your search

+1 -1
View File
@@ -7,12 +7,12 @@ var generateSSLcert = require("./generateSSLcert.js")
describe("generateSSLcert.js(options)", ()=>{
it("Creates a folder with a .crt and .key file in it", ()=>{
let certPath = "lib/certTestPlsDelete";
assert(!fs.existsSync(certPath)); // if it already exsits, the test might pass because of leftover data (which is bad)
generateSSLcert({
// bits:512, // supported, but I just use the default of 2048 for this test
certificatePath:certPath,
doLogging: false,
});
assert(fs.existsSync(certPath));