add some basic tests
This commit is contained in:
@@ -0,0 +1,18 @@
|
||||
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).to.be.a.String;
|
||||
});
|
||||
|
||||
it('throws an error in case the page does not exist', () => {
|
||||
let getManifestFilesFn = () => { getManifestFiles('strange name here') };
|
||||
expect(getManifestFilesFn).to.throw(Error);
|
||||
});
|
||||
});
|
||||
});
|
||||
Reference in New Issue
Block a user