easy-config-logger
Version:
easy-config-logger is the logger with easy configuration. It is designed for both readability in development and json output in production.
23 lines (22 loc) • 654 B
JavaScript
;
/**
* setup before test
*/
var __importStar = (this && this.__importStar) || function (mod) {
if (mod && mod.__esModule) return mod;
var result = {};
if (mod != null) for (var k in mod) if (Object.hasOwnProperty.call(mod, k)) result[k] = mod[k];
result["default"] = mod;
return result;
};
Object.defineProperty(exports, "__esModule", { value: true });
// tslint:disable
var sinon = __importStar(require("sinon"));
beforeEach(function () {
this.sandbox = sinon.sandbox.create();
this.clock = sinon.useFakeTimers(new Date());
});
afterEach(function () {
this.clock.restore();
this.sandbox.restore();
});