summaryrefslogtreecommitdiff
path: root/web-ui/test
diff options
context:
space:
mode:
authorBruno Wagner <bwagner@thoughtworks.com>2014-10-16 17:47:03 +0200
committerBruno Wagner <bwagner@thoughtworks.com>2014-10-16 17:48:56 +0200
commit19f89c970b214d2b131cbc4124b1630b0f330efa (patch)
treea68dce1a6584fde8f272a2ace60e9ec6cf2bdaf3 /web-ui/test
parenta8f3d31bd41def7a334b5a2f4f260ec77ce76d2c (diff)
Fixed the pagination on the front-end and added real total mail count ot the search result
Diffstat (limited to 'web-ui/test')
-rw-r--r--web-ui/test/spec/services/mail_service.spec.js4
1 files changed, 2 insertions, 2 deletions
diff --git a/web-ui/test/spec/services/mail_service.spec.js b/web-ui/test/spec/services/mail_service.spec.js
index 3ce223cc..897d3d5f 100644
--- a/web-ui/test/spec/services/mail_service.spec.js
+++ b/web-ui/test/spec/services/mail_service.spec.js
@@ -238,8 +238,8 @@ describeComponent('services/mail_service', function () {
expect(this.component.attr.currentPage).toEqual(2);
});
- it('won\'t change the page if it was already at the first page and trying to go to previous', function() {
- this.component.attr.numPages = 10;
+ it('won\'t change the page if it is at the last mail when ui:page:next is fired', function() {
+ this.component.attr.numPages = 9;
this.component.attr.currentPage = 9;
this.component.trigger(Pixelated.events.ui.page.next);