UNPKG

testdouble

Version:

A minimal test double library for TDD with JavaScript

6 lines (4 loc) 227 B
import _ from '../wrap/lodash' export default (thing) => thing && thing.prototype && _.some(Object.getOwnPropertyNames(thing.prototype), property => property !== 'constructor' && _.isFunction(thing.prototype[property]))