Remove serving up webadmin/ in test case
This commit is contained in:
+1
-3
@@ -43,9 +43,7 @@ function initializeExpressSync() {
|
||||
app.set('view options', { layout: true, debug: true });
|
||||
app.set('view engine', 'ejs');
|
||||
|
||||
if (process.env.BOX_ENV === 'test') {
|
||||
app.use(express.static(path.join(__dirname, '/../webadmin')));
|
||||
} else {
|
||||
if (process.env.BOX_ENV !== 'test') {
|
||||
app.use(middleware.morgan('dev', { immediate: false }));
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user