@@ -24,13 +24,13 @@ describe('Reporter Functionality', () => {
24
24
const reporter = reporterFactory ( {
25
25
formatter ( ) {
26
26
// empty formatter
27
- } ,
27
+ }
28
28
} ) ;
29
29
30
30
expect ( typeof reporter ( { } ) . then ) . toBe ( 'function' ) ;
31
31
} ) ;
32
32
} ) ;
33
- describe ( 'Reporter Behavior with console' , ( ) => {
33
+ describe ( 'Reporter behavior with console' , ( ) => {
34
34
it ( 'reporter should write to console when console param is true' , ( ) => {
35
35
stub ( process . stdout , 'write' ) ;
36
36
const reporter = reporterFactory ( {
@@ -61,7 +61,7 @@ describe('Reporter Behavior with console', () => {
61
61
stub ( process . stdout , 'write' ) ;
62
62
const reporter = reporterFactory ( {
63
63
formatter ( ) { return ' \n' ; } ,
64
- console : true ,
64
+ console : true
65
65
} ) ;
66
66
67
67
reporter ( { } ) ;
@@ -73,7 +73,7 @@ describe('Reporter Behavior with console', () => {
73
73
it ( 'reporter should NOT write to console when console param is undefined' , ( ) => {
74
74
stub ( process . stdout , 'write' ) ;
75
75
const reporter = reporterFactory ( {
76
- formatter ( ) { return 'foo' ; } ,
76
+ formatter ( ) { return 'foo' ; }
77
77
} ) ;
78
78
79
79
reporter ( { } ) ;
@@ -83,13 +83,13 @@ describe('Reporter Behavior with console', () => {
83
83
process . stdout . write . restore ( ) ;
84
84
} ) ;
85
85
} ) ;
86
- describe ( 'Reporter Behavior with log file' , ( ) => {
86
+ describe ( 'Reporter behavior with log file' , ( ) => {
87
87
it ( 'reporter should writes a file when formatter returns a string' , async ( ) => {
88
88
const logFilePath = path . resolve ( __dirname , 'foo.txt' ) ;
89
89
90
90
const reporter = reporterFactory ( {
91
91
formatter ( ) { return 'test content' ; } ,
92
- log : logFilePath ,
92
+ log : logFilePath
93
93
} ) ;
94
94
95
95
await reporter ( { } ) ;
@@ -105,7 +105,7 @@ describe('Reporter Behavior with log file', () => {
105
105
106
106
const reporter = reporterFactory ( {
107
107
formatter ( ) { return 'test content' ; } ,
108
- log : logFilePath ,
108
+ log : logFilePath
109
109
} ) ;
110
110
111
111
await reporter ( { } ) ;
@@ -121,7 +121,7 @@ describe('Reporter Behavior with log file', () => {
121
121
122
122
const reporter = reporterFactory ( {
123
123
formatter ( ) { return '' ; } ,
124
- log : logFilePath ,
124
+ log : logFilePath
125
125
} ) ;
126
126
127
127
await reporter ( { } ) ;
@@ -135,7 +135,7 @@ describe('Reporter Behavior with log file', () => {
135
135
const logFilePath = path . resolve ( __dirname , 'foo.txt' ) ;
136
136
137
137
const reporter = reporterFactory ( {
138
- formatter ( ) { return 'foo' ; } ,
138
+ formatter ( ) { return 'foo' ; }
139
139
} ) ;
140
140
141
141
await reporter ( { } ) ;
0 commit comments