File tree Expand file tree Collapse file tree 2 files changed +4
-4
lines changed Expand file tree Collapse file tree 2 files changed +4
-4
lines changed Original file line number Diff line number Diff line change @@ -113,15 +113,15 @@ h.getHomeDir = function() {
113113} ;
114114
115115h . getCacheDir = function ( ) {
116- return this . getHomeDir ( ) + '/ .lc/' ;
116+ return path . join ( this . getHomeDir ( ) , ' .lc' ) ;
117117} ;
118118
119119h . getCacheFile = function ( k ) {
120- return this . getCacheDir ( ) + k + '.json' ;
120+ return path . join ( this . getCacheDir ( ) , k + '.json' ) ;
121121} ;
122122
123123h . getConfigFile = function ( ) {
124- return this . getHomeDir ( ) + '/ .lcconfig';
124+ return path . join ( this . getHomeDir ( ) , ' .lcconfig') ;
125125} ;
126126
127127h . readStdin = function ( cb ) {
Original file line number Diff line number Diff line change @@ -129,7 +129,7 @@ describe('helper', function() {
129129 process . env . HOME = '/home/skygragon' ;
130130
131131 assert . equal ( h . getHomeDir ( ) , '/home/skygragon' ) ;
132- assert . equal ( h . getCacheDir ( ) , '/home/skygragon/.lc/ ' ) ;
132+ assert . equal ( h . getCacheDir ( ) , '/home/skygragon/.lc' ) ;
133133 assert . equal ( h . getCacheFile ( 'xxx' ) , '/home/skygragon/.lc/xxx.json' ) ;
134134 assert . equal ( h . getConfigFile ( ) , '/home/skygragon/.lcconfig' ) ;
135135 assert . equal ( h . getFilename ( '/home/skygragon/.lc/xxx.json' ) , 'xxx' ) ;
You can’t perform that action at this time.
0 commit comments