All files / server/test instance.js

100% Statements 2/2
100% Branches 5/5
100% Functions 1/1
100% Lines 2/2
1 2 3 4 5  30x 285x    
// 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);
};