Software: Apache/2.4.41 (Ubuntu). PHP/8.0.30 uname -a: Linux apirnd 5.4.0-204-generic #224-Ubuntu SMP Thu Dec 5 13:38:28 UTC 2024 x86_64 uid=33(www-data) gid=33(www-data) groups=33(www-data) Safe-mode: OFF (not secure) /usr/local/lib/node_modules/strapi/node_modules/captains-log/test/fixtures/ drwxr-xr-x | |
| Viewing file: Select action/file-type: /**
* Dependencies
*/
var _recordAll = require('./_record-all');
var _pauseAll = require('./_pause-all');
// Note- this could be done a lot more elegantly- see the newer test suites
// (e.g. expectOutputValue) for an example.
/**
* Fixtures to be used directly by mocha's `before`, `after`, `beforeEach`,
* `afterEach`, and `it` methods.
*
* @type {Object}
*/
module.exports = {
log: {
silly: function() {
var args = Array.prototype.slice.call(arguments);
return function() {
var ctx = this;
_recordAll(ctx);
ctx.log.silly.apply(args);
_pauseAll(ctx);
};
},
verbose: function() {
var args = Array.prototype.slice.call(arguments);
return function() {
var ctx = this;
_recordAll(ctx);
ctx.log.verbose.apply(args);
_pauseAll(ctx);
};
},
info: function() {
var args = Array.prototype.slice.call(arguments);
return function() {
var ctx = this;
_recordAll(ctx);
ctx.log.info.apply(args);
_pauseAll(ctx);
};
},
blank: function() {
var args = Array.prototype.slice.call(arguments);
return function() {
var ctx = this;
_recordAll(ctx);
ctx.log.blank.apply(args);
_pauseAll(ctx);
};
},
_call: function() {
var args = Array.prototype.slice.call(arguments);
return function() {
var ctx = this;
_recordAll(ctx);
ctx.log.apply(args);
_pauseAll(ctx);
};
},
debug: function() {
var args = Array.prototype.slice.call(arguments);
return function() {
var ctx = this;
_recordAll(ctx);
ctx.log.debug.apply(args);
_pauseAll(ctx);
};
},
warn: function() {
var args = Array.prototype.slice.call(arguments);
return function() {
var ctx = this;
_recordAll(ctx);
ctx.log.warn.apply(args);
_pauseAll(ctx);
};
},
error: function() {
var args = Array.prototype.slice.call(arguments);
return function() {
var ctx = this;
_recordAll(ctx);
ctx.log.error.apply(args);
_pauseAll(ctx);
};
}
}
};
|
:: Command execute :: | |
--[ c99shell v. 2.5 [PHP 8 Update] [24.05.2025] | Generation time: 0.0052 ]-- |