���� JFIF �� � ( %"1"%)+...383,7(-.-
![]() Server : Apache/2.4.6 (CentOS) OpenSSL/1.0.2k-fips PHP/7.4.20 System : Linux st2.domain.com 3.10.0-1127.10.1.el7.x86_64 #1 SMP Wed Jun 3 14:28:03 UTC 2020 x86_64 User : apache ( 48) PHP Version : 7.4.20 Disable Function : NONE Directory : /lib/node_modules/forever/node_modules/winston/test/ |
/* * exception-test.js: Tests for exception data gathering in winston. * * (C) 2010 Charlie Robbins * MIT LICENSE * */ var path = require('path'), vows = require('vows'), assert = require('assert'), winston = require('../lib/winston'), helpers = require('./helpers'); vows.describe('winston/exception').addBatch({ "When using the winston exception module": { "the getProcessInfo() method": { topic: winston.exception.getProcessInfo(), "should respond with the appropriate data": function (info) { helpers.assertProcessInfo(info); } }, "the getOsInfo() method": { topic: winston.exception.getOsInfo(), "should respond with the appropriate data": function (info) { helpers.assertOsInfo(info); } }, "the getTrace() method": { topic: winston.exception.getTrace(new Error()), "should have the appropriate info": function (trace) { helpers.assertTrace(trace); } }, "the getAllInfo() method": { topic: winston.exception.getAllInfo(new Error()), "should have the appropriate info": function (info) { assert.isObject(info); assert.isArray(info.stack); helpers.assertDateInfo(info.date); helpers.assertProcessInfo(info.process); helpers.assertOsInfo(info.os); helpers.assertTrace(info.trace); } } } }).export(module);