summaryrefslogtreecommitdiff
path: root/src/node
diff options
context:
space:
mode:
authorLuc Didry <luc@didry.org>2015-02-25 01:05:58 +0100
committerLuc Didry <luc@didry.org>2015-02-25 01:05:58 +0100
commit92022e493ee882f486e2ad9e5e0986b1af90f614 (patch)
treed643036b2b61c6a6e03fcbbbbf4f3642e4a0a92a /src/node
parent845788c39df0b9674c516e7673a8ba7bb43495b1 (diff)
downloadetherpad-lite-92022e493ee882f486e2ad9e5e0986b1af90f614.zip
Add backend tests for new API functions
These new functions are: * getSavedRevisionsCount * listSavedRevisions * saveRevision + typo fixing in backend tests
Diffstat (limited to 'src/node')
-rw-r--r--src/node/db/Pad.js3
1 files changed, 3 insertions, 0 deletions
diff --git a/src/node/db/Pad.js b/src/node/db/Pad.js
index 7a02e0fb..53847600 100644
--- a/src/node/db/Pad.js
+++ b/src/node/db/Pad.js
@@ -63,6 +63,9 @@ Pad.prototype.getSavedRevisionsList = function getSavedRevisionsList() {
for(var rev in this.savedRevisions){
savedRev.push(this.savedRevisions[rev].revNum);
}
+ savedRev.sort(function(a, b) {
+ return a - b;
+ });
return savedRev;
};