mirror of
https://github.com/HabitRPG/habitica.git
synced 2026-03-13 08:41:14 +08:00
* replace lodash template usage with micromustache * remove function brackets from translations * add newline * remove old test * split core translations from content translations * fix directory not existing * fix lint
10 lines
388 B
JavaScript
10 lines
388 B
JavaScript
import { STRING_DOES_NOT_EXIST_MSG } from '../helpers/content.helper';
|
|
import translator from '../../website/common/script/content/translation';
|
|
|
|
describe('Translator', () => {
|
|
it('returns an error message if string does not exist', () => {
|
|
const stringDoesNotExist = translator('stringDoesNotExist')();
|
|
expect(stringDoesNotExist).to.match(STRING_DOES_NOT_EXIST_MSG);
|
|
});
|
|
});
|