From 08a4bab1ba7e0c69efa352977ca01cac785e3850 Mon Sep 17 00:00:00 2001 From: Trent Mick Date: Sat, 17 Jan 2015 22:04:39 -0800 Subject: [PATCH] fix 'make check' --- lib/bunyan.js | 2 +- test/stream-levels.test.js | 37 ++++++++++++++++++++++--------------- 2 files changed, 23 insertions(+), 16 deletions(-) diff --git a/lib/bunyan.js b/lib/bunyan.js index 1329621..96f4854 100644 --- a/lib/bunyan.js +++ b/lib/bunyan.js @@ -51,7 +51,7 @@ var isBrowser = function () { return typeof (window) !== 'undefined' && this === window; }(); try { - var sourceMapSupport = require("source-map-support"); + var sourceMapSupport = require('source-map-support'); } catch (_) { sourceMapSupport = null; } diff --git a/test/stream-levels.test.js b/test/stream-levels.test.js index b373fdd..7e2969d 100644 --- a/test/stream-levels.test.js +++ b/test/stream-levels.test.js @@ -75,9 +75,11 @@ test('stream & level="trace" specified', function (t) { test('one stream, default level', function (t) { var log = bunyan.createLogger({ name: 'foo', - streams: [{ - stream: process.stderr - }] + streams: [ + { + stream: process.stderr + } + ] }); t.equal(log.level(), bunyan.INFO); t.equal(log.streams[0].level, bunyan.INFO); @@ -88,9 +90,11 @@ test('one stream, top-"level" specified', function (t) { var log = bunyan.createLogger({ name: 'foo', level: 'error', - streams: [{ - stream: process.stderr - }] + streams: [ + { + stream: process.stderr + } + ] }); t.equal(log.level(), bunyan.ERROR); t.equal(log.streams[0].level, bunyan.ERROR); @@ -100,10 +104,12 @@ test('one stream, top-"level" specified', function (t) { test('one stream, stream-"level" specified', function (t) { var log = bunyan.createLogger({ name: 'foo', - streams: [{ - stream: process.stderr, - level: 'error' - }] + streams: [ + { + stream: process.stderr, + level: 'error' + } + ] }); t.equal(log.level(), bunyan.ERROR); t.equal(log.streams[0].level, bunyan.ERROR); @@ -114,10 +120,12 @@ test('one stream, both-"level" specified', function (t) { var log = bunyan.createLogger({ name: 'foo', level: 'debug', - streams: [{ - stream: process.stderr, - level: 'error' - }] + streams: [ + { + stream: process.stderr, + level: 'error' + } + ] }); t.equal(log.level(), bunyan.ERROR); t.equal(log.streams[0].level, bunyan.ERROR); @@ -163,4 +171,3 @@ test('two streams, one with "level" specified', function (t) { t.equal(log.streams[1].level, bunyan.FATAL); t.end(); }); -