All files / server/src/modern renaissance.js

100% Statements 5/5
100% Branches 2/2
100% Functions 2/2
100% Lines 4/4
1 2 3 4 5 6 7 8 9 10 11    7x       42x 234x 234x    
// Modules - All of the modules that are loaded by default
// For some reason, the tests are in /test/connect.test.js
const modern = require('../../src/modern');
 
// This is not the middleware itself; it is called on init once and returns the
// actual middleware
module.exports = mod => ctx => {
  const res = mod(ctx, ctx.options);
  return res ? modern(res)(ctx) : Promise.resolve();
};