blob: 967cdb4d4be5a53d0c67fce3512630bdd30da9e4 [file] [log] [blame] [raw]
import {assert} from 'chai';
import {getSiteTemplates, loadSiteTemplates} from '../../lib/handlers/site-templates';
describe('Site Templates Backend', () => {
before(() => {
loadSiteTemplates('etc/config');
});
it('should load site templates properly', () => {
const templates = getSiteTemplates();
// not super comprehensive
assert(templates.meta['meta.screenshot_dimentions'] !== undefined);
assert(Object.entries(templates.templates).length > 0);
});
});