mirror of
https://github.com/TryGhost/Ghost.git
synced 2024-12-22 02:11:44 +03:00
5f5f0021db
no issue - support ends today - see https://github.com/nodejs/Release - removed `use strict`
23 lines
656 B
JavaScript
23 lines
656 B
JavaScript
const should = require('should'),
|
|
settingsCache = require('../../../server/services/settings/cache'),
|
|
helpers = require('../../../server/helpers'),
|
|
proxy = require('../../../server/helpers/proxy');
|
|
|
|
describe('{{lang}} helper', function () {
|
|
beforeEach(function () {
|
|
settingsCache.set('default_locale', {value: 'en'});
|
|
});
|
|
|
|
afterEach(function () {
|
|
settingsCache.shutdown();
|
|
});
|
|
|
|
it('returns correct language tag', function () {
|
|
let expected = proxy.i18n.locale(),
|
|
rendered = helpers.lang.call();
|
|
|
|
should.exist(rendered);
|
|
rendered.string.should.equal(expected);
|
|
});
|
|
});
|