Add another key to config diff whitelist

This commit is contained in:
Ajay Ramachandran 2022-12-04 15:06:16 -05:00 committed by GitHub
parent bf8003891c
commit 8c185d4b5e
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -10,7 +10,7 @@ function partialDeepEquals (actual, expected, logger) {
// loop over key, value of expected
let failed = false;
for (const [ key, value ] of Object.entries(expected)) {
if (key === "serverAddress" || key === "testingServerAddress" || key === "serverAddressComment") continue
if (key === "serverAddress" || key === "testingServerAddress" || key === "serverAddressComment" || key === "freeChapterAccess") continue
// if value is object, recurse
const actualValue = actual?.[key]
if (typeof value !== "string" && Array.isArray(value)) {
@ -63,4 +63,4 @@ class configDiffPlugin {
}
}
module.exports = configDiffPlugin;
module.exports = configDiffPlugin;