fixed helmet for testing

This commit is contained in:
neobii 2018-12-19 09:28:10 -06:00
parent 1e7ae073a9
commit dd546faee0

View file

@ -15,6 +15,11 @@ import {
import { RouterServer } from './router.jsx'; import { RouterServer } from './router.jsx';
//fix helmet when running tests
if (Meteor.isPackageTest) {
Helmet.canUseDOM = false;
}
Meteor.startup(() => { Meteor.startup(() => {
// note: route defined here because it "shouldn't be removable" // note: route defined here because it "shouldn't be removable"
addRoute({name:'app.notfound', path:'*', componentName: 'Error404'}); addRoute({name:'app.notfound', path:'*', componentName: 'Error404'});