All files / server/test instance.js

100% Statements 2/2
80% Branches 4/5
100% Functions 1/1
100% Lines 2/2
1 2 3 4 5  28x 271x    
// Detect whether the passed parameter is an instance of server or not
module.exports = (potential = {}) => {
  return (potential instanceof Promise) || (potential.close && potential.server && potential.plugins);
};