From 361796f0ff1eb0f450f768749d5c69f5c4f6b1e4 Mon Sep 17 00:00:00 2001 From: Caio Carrara Date: Fri, 24 Jun 2016 17:15:54 -0300 Subject: Updates the i18next to latest version See: #727 --- .../test/spec/mail_list_actions/ui/mail_list_actions.spec.js | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) (limited to 'web-ui/test/spec/mail_list_actions') 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 = $('', { id: 'delete-selected'}); }); it('should render button text', function () { $(document).trigger(Pixelated.events.ui.tag.select, {tag: 'inbox'}); - - expect(this.component.$node.html()).toMatch('
  • '); + + expect(this.component.$node.html()).toMatch('
  • '); }); 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('
  • '); + expect(this.component.$node.html()).toMatch('
  • '); }); - + 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'); -- cgit v1.2.3