mirror of
https://github.com/HabitRPG/habitica.git
synced 2025-12-18 07:07:35 +01:00
20 lines
534 B
JavaScript
20 lines
534 B
JavaScript
import {
|
|
getManifestFiles,
|
|
} from '../../../../../website/server/libs/api-v3/buildManifest';
|
|
|
|
describe('Build Manifest', () => {
|
|
describe('getManifestFiles', () => {
|
|
it('returns an html string', () => {
|
|
let htmlCode = getManifestFiles('app');
|
|
|
|
expect(htmlCode.startsWith('<script') || htmlCode.startsWith('<link')).to.be.true;
|
|
});
|
|
|
|
it('throws an error in case the page does not exist', () => {
|
|
expect(() => {
|
|
getManifestFiles('strange name here');
|
|
}).to.throw(Error);
|
|
});
|
|
});
|
|
});
|