@@ -5,8 +5,8 @@ var code = require('code');
5
5
var child = require ( 'child_process' ) ;
6
6
7
7
lab . 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 ) {
10
10
stdout = stdout . replace ( / \\ / g, '/' ) . split ( '\n' ) ;
11
11
code . expect ( stdout [ 0 ] ) . to . contain ( 'test debug' ) ;
12
12
code . expect ( stdout [ 1 ] ) . to . contain ( 'test info' ) ;
@@ -16,7 +16,7 @@ lab.experiment('logging', function() {
16
16
} ) ;
17
17
} ) ;
18
18
19
- lab . test ( 'no log-level flag: defaults to -lll ' , function ( done ) {
19
+ lab . test ( 'no log-level flag: defaults to -LLL ' , function ( done ) {
20
20
child . exec ( 'node ' + __dirname + '/fixtures/logging.js' , function ( err , stdout , stderr ) {
21
21
stdout = stdout . replace ( / \\ / g, '/' ) . split ( '\n' ) ;
22
22
code . expect ( stdout [ 0 ] ) . to . contain ( 'test info' ) ;
@@ -26,8 +26,8 @@ lab.experiment('logging', function() {
26
26
} ) ;
27
27
} ) ;
28
28
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 ) {
31
31
stdout = stdout . replace ( / \\ / g, '/' ) . split ( '\n' ) ;
32
32
code . expect ( stdout [ 0 ] ) . to . contain ( 'test info' ) ;
33
33
code . expect ( stdout [ 1 ] ) . to . contain ( 'test warn' ) ;
@@ -36,17 +36,17 @@ lab.experiment('logging', function() {
36
36
} ) ;
37
37
} ) ;
38
38
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 ) {
41
41
stdout = stdout . replace ( / \\ / g, '/' ) . split ( '\n' ) ;
42
42
code . expect ( stdout [ 0 ] ) . to . contain ( 'test warn' ) ;
43
43
code . expect ( stderr ) . to . contain ( 'test error' ) ;
44
44
done ( err ) ;
45
45
} ) ;
46
46
} ) ;
47
47
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 ) {
50
50
code . expect ( stderr ) . to . contain ( 'test error' ) ;
51
51
done ( err ) ;
52
52
} ) ;
0 commit comments