Ghost/test/unit/services/theme-engine/i18n_spec.js
Hannah Wolfe ba53de1add Refactored i18n into a class + index
- preparation for using DI instead of requires, so we can move this out of Ghost
- have done this for both the main i18n and theme i18n file
- refactored the constructor
2021-05-05 15:13:23 +01:00

11 lines
310 B
JavaScript

const should = require('should');
const ThemeI18n = require('../../../../core/frontend/services/theme-engine/i18n').ThemeI18n;
describe('ThemeI18n Class Behaviour', function () {
it('defaults to en', function () {
const i18n = new ThemeI18n();
i18n.locale().should.eql('en');
});
});