mirror of
https://github.com/sudoxnym/habitica-self-host.git
synced 2026-04-14 19:47:03 +00:00
17 lines
585 B
JavaScript
17 lines
585 B
JavaScript
import * as contentLib from '../../../../website/server/libs/content';
|
|
import content from '../../../../website/common/script/content';
|
|
|
|
describe('contentLib', () => {
|
|
describe('CONTENT_CACHE_PATH', () => {
|
|
it('exports CONTENT_CACHE_PATH', () => {
|
|
expect(contentLib.CONTENT_CACHE_PATH).to.be.a.string;
|
|
});
|
|
});
|
|
|
|
describe('getLocalizedContent', () => {
|
|
it('clones, not modify, the original content data', () => {
|
|
contentLib.getLocalizedContent();
|
|
expect(typeof content.backgrounds.backgrounds062014.beach.text).to.equal('function');
|
|
});
|
|
});
|
|
});
|