diff options
author | John Christopher Anderson <jchris@apache.org> | 2010-04-16 00:11:31 +0000 |
---|---|---|
committer | John Christopher Anderson <jchris@apache.org> | 2010-04-16 00:11:31 +0000 |
commit | c9501ba2a878689cedb87efbb96c5b6637eb271b (patch) | |
tree | 16d021489fe0d68167b881705f0a5f8211d9a78b /share/www | |
parent | 9bb6096e300765a88fc4ab48a6038e8b6d78db94 (diff) |
upgrade CommonJS modules support to 1.1.1 - thanks Mikeal. closes COUCHDB-739
git-svn-id: https://svn.apache.org/repos/asf/couchdb/trunk@934652 13f79535-47bb-0310-9956-ffa450edef68
Diffstat (limited to 'share/www')
-rw-r--r-- | share/www/script/test/design_docs.js | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/share/www/script/test/design_docs.js b/share/www/script/test/design_docs.js index efc2e718..e62951ac 100644 --- a/share/www/script/test/design_docs.js +++ b/share/www/script/test/design_docs.js @@ -42,7 +42,7 @@ function() { stringzone : "exports.string = 'plankton';", commonjs : { whynot : "exports.test = require('../stringzone')", - upper : "exports.testing = require('./whynot').test.string.toUpperCase()" + upper : "exports.testing = require('./whynot').test.string.toUpperCase()+module.id" } }, views: { @@ -86,7 +86,7 @@ function() { // test commonjs require var xhr = CouchDB.request("GET", "/test_suite_db/_design/test/_show/requirey"); T(xhr.status == 200); - TEquals("PLANKTON", xhr.responseText); + TEquals("PLANKTONwhatever/commonjs/upper", xhr.responseText); // test that we get design doc info back var dinfo = db.designInfo("_design/test"); |