Skip to content

Commit

Permalink
Last backport included tests for commonjs in views.
Browse files Browse the repository at this point in the history
Removing tests for features that don't exist.



git-svn-id: https://svn.apache.org/repos/asf/couchdb/branches/1.0.x@1135874 13f79535-47bb-0310-9956-ffa450edef68
  • Loading branch information
davisp committed Jun 15, 2011
1 parent af48cbf commit 289b7cb
Showing 1 changed file with 0 additions and 18 deletions.
18 changes: 0 additions & 18 deletions share/www/script/test/design_docs.js
Original file line number Diff line number Diff line change
Expand Up @@ -104,20 +104,6 @@ couchTests.design_docs = function(debug) {
(function(keys, values) {
return makebigstring(16);
}).toString()
},
lib : {
baz : "exports.baz = 'bam';",
foo : {
foo : "exports.foo = 'bar';",
boom : "exports.boom = 'ok';",
zoom : "exports.zoom = 'yeah';"
}
},
commonjs : {
map :
(function(doc) {
emit(null, require('views/lib/foo/boom').boom);
}).toString()
}
},
shows: {
Expand Down Expand Up @@ -232,10 +218,6 @@ couchTests.design_docs = function(debug) {
len1 = len2 = len3 = 0;
};

// test commonjs in map functions
resp = db.view("test/commonjs", {limit:1});
T(resp.rows[0].value == 'ok');

// test that the _all_docs view returns correctly with keys
var results = db.allDocs({startkey:"_design", endkey:"_design0"});
T(results.rows.length == 1);
Expand Down

0 comments on commit 289b7cb

Please sign in to comment.