summaryrefslogtreecommitdiff
path: root/src/node/easysync_tests.js
diff options
context:
space:
mode:
authorwebzwo0i <webzwo0i@c3d2.de>2015-02-16 06:22:49 +0100
committerwebzwo0i <webzwo0i@c3d2.de>2015-02-16 06:22:49 +0100
commit59328aa33a5448d4a3b881de5e33bd93662e2d2c (patch)
treea5b75ef4d5545ab02e0444d2c6ed426fc5ae5bf1 /src/node/easysync_tests.js
parent83e1bf0dc4259fed5578174a9dfcf1682acc8854 (diff)
downloadetherpad-lite-59328aa33a5448d4a3b881de5e33bd93662e2d2c.zip
Revert "51c14d994756e60333b0b60eccb7255cf0c86461 changed the return value of"
This reverts commit 66582b19e7a196b77df1e9a912db020189a93014.
Diffstat (limited to 'src/node/easysync_tests.js')
-rw-r--r--src/node/easysync_tests.js10
1 files changed, 5 insertions, 5 deletions
diff --git a/src/node/easysync_tests.js b/src/node/easysync_tests.js
index 93e661b0..374e949f 100644
--- a/src/node/easysync_tests.js
+++ b/src/node/easysync_tests.js
@@ -149,7 +149,7 @@ function runTests() {
var correctText = correct.join('');
//print(literal(cs));
- var outText = Changeset.applyToText(cs, inText)[0];
+ var outText = Changeset.applyToText(cs, inText);
assertEqualStrings(correctText, outText);
}
@@ -585,9 +585,9 @@ function runTests() {
var change123a = Changeset.checkRep(Changeset.compose(change1, change23, p));
assertEqualStrings(change123, change123a);
- assertEqualStrings(text2, Changeset.applyToText(change12, startText)[0]);
- assertEqualStrings(text3, Changeset.applyToText(change23, text1)[0]);
- assertEqualStrings(text3, Changeset.applyToText(change123, startText)[0]);
+ assertEqualStrings(text2, Changeset.applyToText(change12, startText));
+ assertEqualStrings(text3, Changeset.applyToText(change23, text1));
+ assertEqualStrings(text3, Changeset.applyToText(change123, startText));
}
for (var i = 0; i < 30; i++) testCompose(i);
@@ -699,7 +699,7 @@ function runTests() {
print("> testMakeSplice");
var t = "a\nb\nc\n";
- var t2 = Changeset.applyToText(Changeset.makeSplice(t, 5, 0, "def"), t)[0];
+ var t2 = Changeset.applyToText(Changeset.makeSplice(t, 5, 0, "def"), t);
assertEqualStrings("a\nb\ncdef\n", t2);
})();