mirror of
https://github.com/compiler-explorer/compiler-explorer.git
synced 2025-12-27 10:33:59 -05:00
Port to vitest. Port everything to typescript. Remove chai, mocha and chai-as-promised. Adds some docs.
17 lines
560 B
TypeScript
17 lines
560 B
TypeScript
import {beforeAll, describe, expect, it} from 'vitest';
|
|
|
|
import {getSiteTemplates, loadSiteTemplates} from '../../lib/handlers/site-templates.js';
|
|
|
|
describe('Site Templates Backend', () => {
|
|
beforeAll(() => {
|
|
loadSiteTemplates('etc/config');
|
|
});
|
|
|
|
it('should load site templates properly', () => {
|
|
const templates = getSiteTemplates();
|
|
// not super comprehensive
|
|
expect(templates.meta).toHaveProperty('meta.screenshot_dimentions');
|
|
expect(Object.entries(templates.templates).length).toBeTruthy();
|
|
});
|
|
});
|