File tree Expand file tree Collapse file tree 1 file changed +2
-2
lines changed Expand file tree Collapse file tree 1 file changed +2
-2
lines changed Original file line number Diff line number Diff line change @@ -191,7 +191,7 @@ describe("buildSqlModule", function () {
191
191
} ) ;
192
192
193
193
it ( "must succeed for valid configuration files" , function ( ) {
194
- var code1 = utils . buildSqlModule ( '../../../test/ sql-special/sql-config.json') ;
194
+ var code1 = utils . buildSqlModule ( path . join ( __dirname , './ sql-special/sql-config.json') ) ;
195
195
var code2 = utils . buildSqlModule ( path . join ( __dirname , './sql-special/sql-simple.json' ) ) ;
196
196
expect ( typeof code1 ) . toBe ( 'string' ) ;
197
197
expect ( typeof code2 ) . toBe ( 'string' ) ;
@@ -214,7 +214,7 @@ describe("buildSqlModule", function () {
214
214
it ( "must throw on missing 'dir'" , function ( ) {
215
215
var err = new Error ( "Property 'dir' must be a non-empty string." ) ;
216
216
expect ( function ( ) {
217
- utils . buildSqlModule ( '../../../test/ sql-special/sql-invalid.json') ;
217
+ utils . buildSqlModule ( path . join ( __dirname , './ sql-special/sql-invalid.json') ) ;
218
218
} ) . toThrow ( err ) ;
219
219
} ) ;
220
220
You can’t perform that action at this time.
0 commit comments