move mutation tests from easysync_tests to mocha

This commit is contained in:
webzwo0i 2016-02-29 18:00:58 +01:00
parent 172256d69a
commit 6f1b0d9185
2 changed files with 151 additions and 76 deletions

View file

@ -10,11 +10,11 @@ exports.literal = function (v) {
}
exports.assertEqualArrays = function (a, b) {
exports.assert("JSON.stringify(" + exports.literal(a) + ") == JSON.stringify(" + exports.literal(b) + ")");
return JSON.stringify(a) === JSON.stringify(b);
}
exports.assertEqualStrings = function (a, b) {
exports.assert(exports.literal(a) + " == " + exports.literal(b));
return a === b
}
exports.throughIterator = function (opsStr) {