Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
8 changes: 4 additions & 4 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -30,6 +30,6 @@
"sqlite3": "^5.1.7"
},
"devDependencies": {
"prettier": "^3.5.3"
"prettier": "^3.6.0"
}
}
18 changes: 10 additions & 8 deletions tests/configTests.js
Original file line number Diff line number Diff line change
Expand Up @@ -49,33 +49,35 @@ describe('Notification URL', function () {

describe('Certificate config', function () {
it('should have a certificate path', function () {
assert(
(assert(
process.env.CERTIFICATE_PATH && process.env.CERTIFICATE_PATH.length > 0,
),
'CERTIFICATE_PATH is not set in .env\n' +
'Please provide a relative path and file name';
'Please provide a relative path and file name');
});

it('should have a certificate ID', function () {
assert(process.env.CERTIFICATE_ID && process.env.CERTIFICATE_ID.length > 0),
(assert(
process.env.CERTIFICATE_ID && process.env.CERTIFICATE_ID.length > 0,
),
'CERTIFICATE_ID is not set in .env\n' +
'Please provide an identifier for the certificate';
'Please provide an identifier for the certificate');
});

it('should have a private key path', function () {
assert(
(assert(
process.env.PRIVATE_KEY_PATH && process.env.PRIVATE_KEY_PATH.length > 0,
),
'PRIVATE_KEY_PATH is not set in .env\n' +
'Please provide a relative path and file name';
'Please provide a relative path and file name');
});

it('should have a private key password', function () {
assert(
(assert(
process.env.PRIVATE_KEY_PASSWORD &&
process.env.PRIVATE_KEY_PASSWORD.length > 0,
),
'PRIVATE_KEY_PASSWORD is not set in .env\n' +
'Please provide a password for the private key';
'Please provide a password for the private key');
});
});
Loading