Skip to content

Commit

Permalink
Fix translate.test to be eslint friendly
Browse files Browse the repository at this point in the history
  • Loading branch information
Carlos Lizaga committed Nov 22, 2017
1 parent 0117f86 commit 3a907c2
Showing 1 changed file with 6 additions and 2 deletions.
8 changes: 6 additions & 2 deletions dev/tests/js/jasmine/tests/lib/mage/translate.test.js
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@
* Copyright © Magento, Inc. All rights reserved.
* See COPYING.txt for license details.
*/
/* eslint-disable max-nested-callbacks */
define([
'jquery',
'mage/translate'
Expand All @@ -18,7 +19,10 @@ define([
expect('Hello World!').toEqual($.mage.translate.translate('Hello World!'));
});
it('works with one object as parameter', function () {
var translation = {'Hello World!': 'Bonjour tout le monde!'};
var translation = {
'Hello World!': 'Bonjour tout le monde!'
};

$.mage.translate.add(translation);
expect(translation['Hello World!']).toEqual($.mage.translate.translate('Hello World!'));

Expand All @@ -42,4 +46,4 @@ define([
});
});

});
});

0 comments on commit 3a907c2

Please sign in to comment.