@@ -5,8 +5,8 @@ var code = require('code');
55var child = require ( 'child_process' ) ;
66
77lab . experiment ( 'logging' , function ( ) {
8- lab . test ( 'log-level flag for debug: -llll ' , function ( done ) {
9- child . exec ( 'node ' + __dirname + '/fixtures/logging.js -llll ' , function ( err , stdout , stderr ) {
8+ lab . test ( 'log-level flag for debug: -LLLL ' , function ( done ) {
9+ child . exec ( 'node ' + __dirname + '/fixtures/logging.js -LLLL ' , function ( err , stdout , stderr ) {
1010 stdout = stdout . replace ( / \\ / g, '/' ) . split ( '\n' ) ;
1111 code . expect ( stdout [ 0 ] ) . to . contain ( 'test debug' ) ;
1212 code . expect ( stdout [ 1 ] ) . to . contain ( 'test info' ) ;
@@ -16,7 +16,7 @@ lab.experiment('logging', function() {
1616 } ) ;
1717 } ) ;
1818
19- lab . test ( 'no log-level flag: defaults to -lll ' , function ( done ) {
19+ lab . test ( 'no log-level flag: defaults to -LLL ' , function ( done ) {
2020 child . exec ( 'node ' + __dirname + '/fixtures/logging.js' , function ( err , stdout , stderr ) {
2121 stdout = stdout . replace ( / \\ / g, '/' ) . split ( '\n' ) ;
2222 code . expect ( stdout [ 0 ] ) . to . contain ( 'test info' ) ;
@@ -26,8 +26,8 @@ lab.experiment('logging', function() {
2626 } ) ;
2727 } ) ;
2828
29- lab . test ( 'log-level flag for info: -lll ' , function ( done ) {
30- child . exec ( 'node ' + __dirname + '/fixtures/logging.js -lll ' , function ( err , stdout , stderr ) {
29+ lab . test ( 'log-level flag for info: -LLL ' , function ( done ) {
30+ child . exec ( 'node ' + __dirname + '/fixtures/logging.js -LLL ' , function ( err , stdout , stderr ) {
3131 stdout = stdout . replace ( / \\ / g, '/' ) . split ( '\n' ) ;
3232 code . expect ( stdout [ 0 ] ) . to . contain ( 'test info' ) ;
3333 code . expect ( stdout [ 1 ] ) . to . contain ( 'test warn' ) ;
@@ -36,17 +36,17 @@ lab.experiment('logging', function() {
3636 } ) ;
3737 } ) ;
3838
39- lab . test ( 'log-level flag for warn: -ll ' , function ( done ) {
40- child . exec ( 'node ' + __dirname + '/fixtures/logging.js -ll ' , function ( err , stdout , stderr ) {
39+ lab . test ( 'log-level flag for warn: -LL ' , function ( done ) {
40+ child . exec ( 'node ' + __dirname + '/fixtures/logging.js -LL ' , function ( err , stdout , stderr ) {
4141 stdout = stdout . replace ( / \\ / g, '/' ) . split ( '\n' ) ;
4242 code . expect ( stdout [ 0 ] ) . to . contain ( 'test warn' ) ;
4343 code . expect ( stderr ) . to . contain ( 'test error' ) ;
4444 done ( err ) ;
4545 } ) ;
4646 } ) ;
4747
48- lab . test ( 'log-level flag for error: -l ' , function ( done ) {
49- child . exec ( 'node ' + __dirname + '/fixtures/logging.js -l ' , function ( err , stdout , stderr ) {
48+ lab . test ( 'log-level flag for error: -L ' , function ( done ) {
49+ child . exec ( 'node ' + __dirname + '/fixtures/logging.js -L ' , function ( err , stdout , stderr ) {
5050 code . expect ( stderr ) . to . contain ( 'test error' ) ;
5151 done ( err ) ;
5252 } ) ;
0 commit comments