couchdb-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From kxe...@apache.org
Subject [09/12] fauxton commit: updated refs/heads/import-master to 6827677
Date Thu, 15 May 2014 21:50:54 GMT
Fauxton: fix loading of pouch

Added a red test which turned green


Project: http://git-wip-us.apache.org/repos/asf/couchdb-fauxton/repo
Commit: http://git-wip-us.apache.org/repos/asf/couchdb-fauxton/commit/ed2b81dc
Tree: http://git-wip-us.apache.org/repos/asf/couchdb-fauxton/tree/ed2b81dc
Diff: http://git-wip-us.apache.org/repos/asf/couchdb-fauxton/diff/ed2b81dc

Branch: refs/heads/import-master
Commit: ed2b81dc11c1f5a59913115ab41360e9535f0643
Parents: b8fb7a4
Author: Robert Kowalski <rok@kowalski.gd>
Authored: Tue May 13 18:08:45 2014 +0200
Committer: Robert Kowalski <rok@kowalski.gd>
Committed: Tue May 13 18:09:36 2014 +0200

----------------------------------------------------------------------
 app/addons/documents/tests/viewsSpec.js | 23 +++++++++++++++++++++++
 app/addons/pouchdb/base.js              |  2 +-
 app/addons/pouchdb/pouch.collate.js     |  2 +-
 app/addons/pouchdb/pouchdb.mapreduce.js |  4 ++--
 4 files changed, 27 insertions(+), 4 deletions(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/couchdb-fauxton/blob/ed2b81dc/app/addons/documents/tests/viewsSpec.js
----------------------------------------------------------------------
diff --git a/app/addons/documents/tests/viewsSpec.js b/app/addons/documents/tests/viewsSpec.js
new file mode 100644
index 0000000..8bc1397
--- /dev/null
+++ b/app/addons/documents/tests/viewsSpec.js
@@ -0,0 +1,23 @@
+// Licensed under the Apache License, Version 2.0 (the "License"); you may not
+// use this file except in compliance with the License. You may obtain a copy of
+// the License at
+//
+//   http://www.apache.org/licenses/LICENSE-2.0
+//
+// Unless required by applicable law or agreed to in writing, software
+// distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
+// WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
+// License for the specific language governing permissions and limitations under
+// the License.
+define([
+        'addons/documents/views',
+        'testUtils'
+], function (Views, testUtils) {
+  var assert = testUtils.assert;
+
+  describe('DocumentsViews', function () {
+    it('should load', function () {
+      assert.equal(typeof Views.Views.Changes, 'function');
+    });
+  });
+});

http://git-wip-us.apache.org/repos/asf/couchdb-fauxton/blob/ed2b81dc/app/addons/pouchdb/base.js
----------------------------------------------------------------------
diff --git a/app/addons/pouchdb/base.js b/app/addons/pouchdb/base.js
index 69962bb..3cd2b43 100644
--- a/app/addons/pouchdb/base.js
+++ b/app/addons/pouchdb/base.js
@@ -22,7 +22,7 @@ define([
   "api",
 
   // Modules
-  "addons/pouchdb/pouchdb.mapreduce.js"
+  "addons/pouchdb/pouchdb.mapreduce"
 ],
 
 function(app, FauxtonAPI, MapReduce) {

http://git-wip-us.apache.org/repos/asf/couchdb-fauxton/blob/ed2b81dc/app/addons/pouchdb/pouch.collate.js
----------------------------------------------------------------------
diff --git a/app/addons/pouchdb/pouch.collate.js b/app/addons/pouchdb/pouch.collate.js
index 8f15808..e48ab85 100644
--- a/app/addons/pouchdb/pouch.collate.js
+++ b/app/addons/pouchdb/pouch.collate.js
@@ -21,7 +21,7 @@ define([
   "api",
 
   // Modules
-  "addons/pouchdb/pouch.collate.js"
+  "addons/pouchdb/pouch.collate"
 ],
 
 function(app, FauxtonAPI, Collate) {

http://git-wip-us.apache.org/repos/asf/couchdb-fauxton/blob/ed2b81dc/app/addons/pouchdb/pouchdb.mapreduce.js
----------------------------------------------------------------------
diff --git a/app/addons/pouchdb/pouchdb.mapreduce.js b/app/addons/pouchdb/pouchdb.mapreduce.js
index 502e0eb..30e01e5 100644
--- a/app/addons/pouchdb/pouchdb.mapreduce.js
+++ b/app/addons/pouchdb/pouchdb.mapreduce.js
@@ -29,7 +29,7 @@ define([
   "api",
 
   // Modules
-  "addons/pouchdb/pouch.collate.js"
+  "addons/pouchdb/pouch.collate"
 ],
 
 function(app, FauxtonAPI, Collate) {
@@ -90,7 +90,7 @@ function(app, FauxtonAPI, Collate) {
           id: current.doc._id,
           key: key,
           value: val
-        }; 
+        };
         //console.log("VIEW ROW: ", viewRow);
 
         if (options.startkey && Pouch.collate(key, options.startkey) < 0) return;


Mime
View raw message