Skip to content
Snippets Groups Projects
Commit 16916212 authored by Carlos Lizaga's avatar Carlos Lizaga
Browse files

Fix translate.test to be eslint friendly

parent 2abaf8c5
Branches
No related merge requests found
......@@ -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'
......@@ -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!'));
......@@ -42,4 +46,4 @@ define([
});
});
});
\ No newline at end of file
});
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment