mirror of
https://github.com/HabitRPG/habitica.git
synced 2025-12-17 06:37:23 +01:00
fix test lint
This commit is contained in:
@@ -1,5 +1,6 @@
|
||||
require('./globals.helper');
|
||||
import i18n from '../../website/common/script/i18n';
|
||||
|
||||
require('./globals.helper');
|
||||
i18n.translations = require('../../website/server/libs/i18n').translations;
|
||||
|
||||
export const STRING_ERROR_MSG = /^Error processing the string ".*". Please see Help > Report a Bug.$/;
|
||||
@@ -8,7 +9,7 @@ export const STRING_DOES_NOT_EXIST_MSG = /^String '.*' not found.$/;
|
||||
export function expectValidTranslationString (attribute) {
|
||||
expect(attribute).to.be.a('function');
|
||||
|
||||
let translatedString = attribute();
|
||||
const translatedString = attribute();
|
||||
|
||||
expect(translatedString.trim()).to.not.be.empty;
|
||||
expect(translatedString).to.not.contain('function func(lang)');
|
||||
|
||||
Reference in New Issue
Block a user