Files
habitica/test/api/v3/unit/libs/buildManifest.test.js
2015-11-15 17:27:22 +01:00

19 lines
567 B
JavaScript

import {
getManifestFiles,
} from '../../../../../website/src/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', () => {
let getManifestFilesFn = () => { getManifestFiles('strange name here') };
expect(getManifestFilesFn).to.throw(Error);
});
});
});