diff options
author | Garren Smith <garren.smith@gmail.com> | 2013-10-28 17:02:09 +0200 |
---|---|---|
committer | Garren Smith <garren.smith@gmail.com> | 2013-11-04 15:37:50 +0200 |
commit | d692b31d4f16b688bfa1f3715557c194dfbec4cf (patch) | |
tree | b00209e1eb3ebc8790f9c39a2371b6fd40b88380 | |
parent | b7c5531583df21b729cec2b7b054454d79e02e37 (diff) | |
download | couchdb-d692b31d4f16b688bfa1f3715557c194dfbec4cf.tar.gz |
Fauxton fix failing test
-rw-r--r-- | src/fauxton/test/core/paginateSpec.js | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/src/fauxton/test/core/paginateSpec.js b/src/fauxton/test/core/paginateSpec.js index 0b3acfb7d..114c4348a 100644 --- a/src/fauxton/test/core/paginateSpec.js +++ b/src/fauxton/test/core/paginateSpec.js @@ -43,8 +43,8 @@ define([ collection: collection, previousUrlfn: function () {}, nextUrlfn: function () {}, - canShowPreviousfn: function () {}, - canShowNextfn: function () {} + canShowPreviousfn: function () { return true; }, + canShowNextfn: function () { return true;} }); viewSandbox = new ViewSandbox(); viewSandbox.renderView(paginate); @@ -58,6 +58,8 @@ define([ beforeEach(function () { //do this so it doesn't throw an error on other unwired up components FauxtonAPI.triggerRouteEvent = function () {}; + //FauxtonAPI.triggerRouteEvent.restore && FauxtonAPI.triggerRouteEvent.restore(); + //FauxtonAPI.navigate.restore && FauxtonAPI.navigate.restore(); }); it('Should navigate', function () { |