couchdb-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From rnew...@apache.org
Subject git commit: Simplify changes.js test
Date Thu, 29 Mar 2012 11:50:54 GMT
Updated Branches:
  refs/heads/master 9b08d4a80 -> 6a5f32418


Simplify changes.js test

The changes.js test for filter=_view emits a key when it is only
necessary to emit a row. I've emitted (null, null) to clarify that.


Project: http://git-wip-us.apache.org/repos/asf/couchdb/repo
Commit: http://git-wip-us.apache.org/repos/asf/couchdb/commit/6a5f3241
Tree: http://git-wip-us.apache.org/repos/asf/couchdb/tree/6a5f3241
Diff: http://git-wip-us.apache.org/repos/asf/couchdb/diff/6a5f3241

Branch: refs/heads/master
Commit: 6a5f32418d3be0fce467acbefede468802b72529
Parents: 9b08d4a
Author: Robert Newson <rnewson@apache.org>
Authored: Thu Mar 29 12:48:11 2012 +0100
Committer: Robert Newson <rnewson@apache.org>
Committed: Thu Mar 29 12:48:11 2012 +0100

----------------------------------------------------------------------
 share/www/script/test/changes.js |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/couchdb/blob/6a5f3241/share/www/script/test/changes.js
----------------------------------------------------------------------
diff --git a/share/www/script/test/changes.js b/share/www/script/test/changes.js
index 5a8154c..19e22fd 100644
--- a/share/www/script/test/changes.js
+++ b/share/www/script/test/changes.js
@@ -209,7 +209,7 @@ couchTests.changes = function(debug) {
       blah: {
         map : 'function(doc) {' +
               '  if (doc._id == "blah") {' +
-              '    emit(doc._id, null);' +
+              '    emit(null, null);' +
               '  }' +
               '}'
       }


Mime
View raw message