mirror of
https://github.com/ether/etherpad-lite.git
synced 2025-04-28 11:26:16 -04:00
move mutation tests from easysync_tests to mocha
This commit is contained in:
parent
172256d69a
commit
6f1b0d9185
2 changed files with 151 additions and 76 deletions
|
@ -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) {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue