summaryrefslogtreecommitdiff
path: root/share/www
diff options
context:
space:
mode:
Diffstat (limited to 'share/www')
-rw-r--r--share/www/script/couch_tests.js9
1 files changed, 8 insertions, 1 deletions
diff --git a/share/www/script/couch_tests.js b/share/www/script/couch_tests.js
index dbc70325..20d8733f 100644
--- a/share/www/script/couch_tests.js
+++ b/share/www/script/couch_tests.js
@@ -216,6 +216,13 @@ var tests = {
// and on the deleted one, no doc
T(all_seq.rows[2].value.deleted);
T(!all_seq.rows[2].doc);
+
+ // test the all docs collates sanely
+ db.save({_id: "Z", foo: "Z"});
+ db.save({_id: "a", foo: "a"});
+
+ var rows = db.allDocs({startkey: "Z", endkey: "Z"}).rows;
+ T(rows.length == 1);
},
// Do some edit conflict detection tests
@@ -1166,7 +1173,7 @@ var tests = {
T(db.bulkSave(makeDocs(1, numDocs + 1)).ok);
// test that the _all_docs view returns correctly with keys
- var results = db.allDocs({startkey:"_design%2F", endkey:"_design%2FZZZ"});
+ var results = db.allDocs({startkey:"_design", endkey:"_design0"});
T(results.rows.length == 1);
for (var loop = 0; loop < 2; loop++) {