diff options
author | John Christopher Anderson <jchris@apache.org> | 2010-09-12 09:03:38 +0000 |
---|---|---|
committer | John Christopher Anderson <jchris@apache.org> | 2010-09-12 09:03:38 +0000 |
commit | da6167eb1d0c893925b98116fe2c17cd20e36760 (patch) | |
tree | 4a476e8cfe015378918998aadd8fc27ac1958d22 /share/www/script/test/design_docs.js | |
parent | ce44c0efd3a79843e5504c32c1147bd2c64d0331 (diff) |
commonjs require no longer creates circular references
git-svn-id: https://svn.apache.org/repos/asf/couchdb/branches/1.0.x@996269 13f79535-47bb-0310-9956-ffa450edef68
Diffstat (limited to 'share/www/script/test/design_docs.js')
-rw-r--r-- | share/www/script/test/design_docs.js | 6 |
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"); |