From 505e1110371c6f88bfb4d293b68033a09284895b Mon Sep 17 00:00:00 2001 From: John Christopher Anderson Date: Wed, 16 Sep 2009 06:35:56 +0000 Subject: add limit to _changes git-svn-id: https://svn.apache.org/repos/asf/couchdb/trunk@815629 13f79535-47bb-0310-9956-ffa450edef68 --- share/www/script/test/changes.js | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) (limited to 'share') diff --git a/share/www/script/test/changes.js b/share/www/script/test/changes.js index a6ce51d5..f348aed8 100644 --- a/share/www/script/test/changes.js +++ b/share/www/script/test/changes.js @@ -249,5 +249,7 @@ couchTests.changes = function(debug) { T(resp.results[0].id == docResp.id); }); - // todo implement adhoc filters... + req = CouchDB.request("GET", "/test_suite_db/_changes?limit=1"); + resp = JSON.parse(req.responseText); + TEquals(1, resp.results.length) }; -- cgit v1.2.3