summaryrefslogtreecommitdiff
path: root/web-ui/test/spec/mail_list_actions
diff options
context:
space:
mode:
authorCaio Carrara <ccarrara@thoughtworks.com>2016-06-24 17:15:54 -0300
committerCaio Carrara <ccarrara@thoughtworks.com>2016-06-27 16:39:55 -0300
commit361796f0ff1eb0f450f768749d5c69f5c4f6b1e4 (patch)
tree01e1729ce21feccba9c08fd6e7d8452397d5521a /web-ui/test/spec/mail_list_actions
parent6042a2b1b93d2f2a89c418971d7e12b5a79b3314 (diff)
Updates the i18next to latest version
See: #727
Diffstat (limited to 'web-ui/test/spec/mail_list_actions')
-rw-r--r--web-ui/test/spec/mail_list_actions/ui/mail_list_actions.spec.js12
1 files changed, 6 insertions, 6 deletions
diff --git a/web-ui/test/spec/mail_list_actions/ui/mail_list_actions.spec.js b/web-ui/test/spec/mail_list_actions/ui/mail_list_actions.spec.js
index a12ca98a..1ab90562 100644
--- a/web-ui/test/spec/mail_list_actions/ui/mail_list_actions.spec.js
+++ b/web-ui/test/spec/mail_list_actions/ui/mail_list_actions.spec.js
@@ -1,25 +1,25 @@
describeComponent('mail_list_actions/ui/mail_list_actions', function () {
'use strict';
var mailListActionsContainer;
-
+ var i18n;
describe('post initialization', function () {
beforeEach(function () {
this.setupComponent();
+ i18n = require('views/i18n');
mailListActionsContainer = $('<input>', { id: 'delete-selected'});
});
it('should render button text', function () {
$(document).trigger(Pixelated.events.ui.tag.select, {tag: 'inbox'});
-
- expect(this.component.$node.html()).toMatch('<li><input type="button" id="delete-selected" value="Delete" disabled="disabled"></li>');
+
+ expect(this.component.$node.html()).toMatch('<li><input type="button" id="delete-selected" value="' + i18n.t('Delete') + '" disabled="disabled"></li>');
});
it('should render button text delete permanently if tag trash', function () {
$(document).trigger(Pixelated.events.ui.tag.select, {tag: 'trash'});
-
- expect(this.component.$node.html()).toMatch('<li><input type="button" id="delete-selected" value="Delete Permanently" disabled="disabled"></li>');
+ expect(this.component.$node.html()).toMatch('<li><input type="button" id="delete-selected" value="Delete permanently" disabled="disabled"></li>');
});
-
+
it('should render button delete permanently if url contains trash tag', function () {
var urlParams = require('page/router/url_params');
spyOn(urlParams, 'getTag').and.returnValue('trash');