UNPKG

testdouble

Version:

A minimal test double library for TDD with JavaScript

5 lines (4 loc) 344 B
"use strict"; Object.defineProperty(exports, "__esModule", { value: true }); const lodash_1 = require("../wrap/lodash"); exports.default = (thing) => thing && thing.prototype && lodash_1.default.some(Object.getOwnPropertyNames(thing.prototype), property => property !== 'constructor' && lodash_1.default.isFunction(thing.prototype[property]));