ソースを参照

Translator tests updated

Artur Paikin 9 年 前
コミット
7e13a20afd
1 ファイル変更3 行追加3 行削除
  1. 3 3
      test/translator.spec.js

+ 3 - 3
test/translator.spec.js

@@ -6,7 +6,7 @@ test('russian translation', function (t) {
   const core = new Core({locale: russian})
 
   t.equal(
-    core.translator.t('choose_file'),
+    core.translator.t('chooseFile'),
     'Выберите файл',
     'should return translated string'
   )
@@ -19,7 +19,7 @@ test('interpolation', function (t) {
   const core = new Core({locale: english})
 
   t.equal(
-    core.translator.t('you_have_chosen', {'file_name': 'img.jpg'}),
+    core.translator.t('youHaveChosen', {'fileName': 'img.jpg'}),
     'You have chosen: img.jpg',
     'should return interpolated string'
   )
@@ -32,7 +32,7 @@ test('pluralization', function (t) {
   const core = new Core({locale: russian})
 
   t.equal(
-    core.translator.t('files_chosen', {'smart_count': '18'}),
+    core.translator.t('filesChosen', {'smart_count': '18'}),
     'Выбрано 18 файлов',
     'should return interpolated & pluralized string'
   )