diff options
author | Filipe David Borba Manana <fdmanana@apache.org> | 2010-11-18 13:20:14 +0000 |
---|---|---|
committer | Filipe David Borba Manana <fdmanana@apache.org> | 2010-11-18 13:20:14 +0000 |
commit | 3cf27c815bf0db1ed81e0acdd94b2f0d816c1585 (patch) | |
tree | 23801e632f36c899d60a5e689bae478d8781efb4 /share/www/script/test/basics.js | |
parent | 46fc40a196a65f9bcded818f9a111edff0ec9576 (diff) |
JavaScript tests: avoid global variable declarations.
git-svn-id: https://svn.apache.org/repos/asf/couchdb/trunk@1036447 13f79535-47bb-0310-9956-ffa450edef68
Diffstat (limited to 'share/www/script/test/basics.js')
-rw-r--r-- | share/www/script/test/basics.js | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/share/www/script/test/basics.js b/share/www/script/test/basics.js index ce19565b..30c27c11 100644 --- a/share/www/script/test/basics.js +++ b/share/www/script/test/basics.js @@ -90,13 +90,13 @@ couchTests.basics = function(debug) { emit(null, doc.b); }; - results = db.query(mapFunction); + var results = db.query(mapFunction); // verify only one document found and the result value (doc.b). T(results.total_rows == 1 && results.rows[0].value == 16); // reopen document we saved earlier - existingDoc = db.open(id); + var existingDoc = db.open(id); T(existingDoc.a==1); @@ -189,7 +189,7 @@ couchTests.basics = function(debug) { T(xhr.status == 404); // Check for invalid document members - bad_docs = [ + var bad_docs = [ ["goldfish", {"_zing": 4}], ["zebrafish", {"_zoom": "hello"}], ["mudfish", {"zane": "goldfish", "_fan": "something smells delicious"}], |