@@ -17,13 +17,13 @@ describe('config', () => {
1717
1818 it ( `loads mysql cov config` , async ( ) => {
1919 const cfg = await Config . get ( 'mysql' , 'cov' )
20- assert . deepEqual ( cfg , mysqlTestCfg )
20+ assert . deepEqual ( cfg , mysqlCovCfg )
2121 } )
2222
2323 it ( `loads mysql cov config (from cache)` , async ( ) => {
2424 process . env . NODE_DEBUG = 1
2525 const cfg = await Config . get ( 'mysql' , 'cov' )
26- assert . deepEqual ( cfg , mysqlTestCfg )
26+ assert . deepEqual ( cfg , mysqlCovCfg )
2727 process . env . NODE_DEBUG = ''
2828 } )
2929
@@ -39,20 +39,28 @@ describe('config', () => {
3939
4040 it ( `detects NODE_DEBUG env` , async ( ) => {
4141 process . env . NODE_DEBUG = 1
42- let cfg = await Config . get ( 'mysql' , 'test' )
42+ await Config . get ( 'mysql' , 'test' )
4343 assert . equal ( Config . debug , true )
4444
4545 process . env . NODE_DEBUG = ''
46- cfg = await Config . get ( 'mysql' , 'test' )
46+ await Config . get ( 'mysql' , 'test' )
4747 assert . equal ( Config . debug , false )
48-
49- cfg = await Config . get ( 'mysql' , 'test' )
50- assert . equal ( cfg . user , 'root' )
5148 } )
5249 } )
5350} )
5451
5552const mysqlTestCfg = {
53+ host : '127.0.0.1' ,
54+ port : 3306 ,
55+ user : 'nictool' ,
56+ password : 'StaySafeOutThere' ,
57+ database : 'nictool' ,
58+ timezone : '+00:00' ,
59+ dateStrings : [ 'DATETIME' , 'TIMESTAMP' ] ,
60+ decimalNumbers : true ,
61+ }
62+
63+ const mysqlCovCfg = {
5664 host : '127.0.0.1' ,
5765 port : 3306 ,
5866 user : 'root' ,
0 commit comments