From c9501ba2a878689cedb87efbb96c5b6637eb271b Mon Sep 17 00:00:00 2001 From: John Christopher Anderson Date: Fri, 16 Apr 2010 00:11:31 +0000 Subject: 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 --- share/www/script/test/design_docs.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'share/www/script/test') 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"); -- cgit v1.2.3