UNPKG

jasmine-automock

Version:

A small library used to mock an instance of a class using jasmine, perfect for mocking injected dependencies.

8 lines (7 loc) 246 B
"use strict"; Object.defineProperty(exports, "__esModule", { value: true }); exports.autoMock = void 0; function autoMock(ref) { return jasmine.createSpyObj(ref.name, Object.getOwnPropertyNames(ref.prototype)); } exports.autoMock = autoMock;