Add new % overlap function used for chapters

Kind of #107
This commit is contained in:
Ajay Ramachandran
2021-11-06 16:09:55 -04:00
parent 32150e4a1d
commit 7eef74a7dc
5 changed files with 208 additions and 37 deletions

View File

@@ -14,8 +14,7 @@ export const partialDeepEquals = (actual: Record<string, any>, expected: Record<
if (print) printActualExpected(actual, expected);
return false;
}
}
else if (actual?.[key] !== value) {
} else if (actual?.[key] !== value) {
if (print) printActualExpected(actual, expected);
return false;
}