summaryrefslogtreecommitdiff
path: root/share/www/script
diff options
context:
space:
mode:
authorJohn Christopher Anderson <jchris@apache.org>2010-09-12 08:56:17 +0000
committerJohn Christopher Anderson <jchris@apache.org>2010-09-12 08:56:17 +0000
commite9256caf158304f1d827d5f168ef4bfc9490d59f (patch)
tree9254a7811926eb101aa9da249e684a4196fc1891 /share/www/script
parent7c832ed49cf55878c8582cb368d4dc5ce70a1f6a (diff)
commonjs require no longer creates circular references
git-svn-id: https://svn.apache.org/repos/asf/couchdb/trunk@996266 13f79535-47bb-0310-9956-ffa450edef68
Diffstat (limited to 'share/www/script')
-rw-r--r--share/www/script/test/design_docs.js6
1 files changed, 3 insertions, 3 deletions
diff --git a/share/www/script/test/design_docs.js b/share/www/script/test/design_docs.js
index e62951ac..2e3e1db1 100644
--- a/share/www/script/test/design_docs.js
+++ b/share/www/script/test/design_docs.js
@@ -41,8 +41,8 @@ function() {
whatever : {
stringzone : "exports.string = 'plankton';",
commonjs : {
- whynot : "exports.test = require('../stringzone')",
- upper : "exports.testing = require('./whynot').test.string.toUpperCase()+module.id"
+ whynot : "exports.test = require('../stringzone'); exports.foo = require('whatever/stringzone');",
+ upper : "exports.testing = require('./whynot').test.string.toUpperCase()+module.id+require('./whynot').foo.string"
}
},
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("PLANKTONwhatever/commonjs/upper", xhr.responseText);
+ TEquals("PLANKTONwhatever/commonjs/upperplankton", xhr.responseText);
// test that we get design doc info back
var dinfo = db.designInfo("_design/test");