You cannot select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
18 lines
650 B
TypeScript
18 lines
650 B
TypeScript
import { expect } from 'chai';
|
|
import { initI18n } from './util';
|
|
import { resetLocaleAndTranslationDict } from '../../../../../util/i18n/shared';
|
|
|
|
describe('setupI18n', () => {
|
|
afterEach(() => {
|
|
resetLocaleAndTranslationDict();
|
|
});
|
|
it('returns setupI18n with all methods defined', () => {
|
|
const setupI18nReturn = initI18n();
|
|
expect(setupI18nReturn).to.be.a('function');
|
|
expect(setupI18nReturn.getRawMessage).to.be.a('function');
|
|
expect(setupI18nReturn.formatMessageWithArgs).to.be.a('function');
|
|
expect(setupI18nReturn.stripped).to.be.a('function');
|
|
expect(setupI18nReturn.inEnglish).to.be.a('function');
|
|
});
|
|
});
|