File tree Expand file tree Collapse file tree 1 file changed +14
-2
lines changed Expand file tree Collapse file tree 1 file changed +14
-2
lines changed Original file line number Diff line number Diff line change 88// Requirements
99//------------------------------------------------------------------------------
1010
11- const assert = require ( "chai" ) . assert ,
12- formatter = require ( "../../../lib/formatters/table" ) ;
11+ const assert = require ( "chai" ) . assert ;
12+ const chalk = require ( "chalk" ) ;
13+ const formatter = require ( "../../../lib/formatters/table" ) ;
1314
1415//------------------------------------------------------------------------------
1516// Tests
1617//------------------------------------------------------------------------------
1718
1819describe ( "formatter:table" , ( ) => {
20+ let originalChalkEnabled ;
21+
22+ before ( ( ) => {
23+ originalChalkEnabled = chalk . enabled ;
24+ chalk . enabled = false ;
25+ } ) ;
26+
27+ after ( ( ) => {
28+ chalk . enabled = originalChalkEnabled ;
29+ } ) ;
30+
1931 describe ( "when passed no messages" , ( ) => {
2032 const code = [
2133 {
You can’t perform that action at this time.
0 commit comments