File tree Expand file tree Collapse file tree 2 files changed +6
-9
lines changed
Expand file tree Collapse file tree 2 files changed +6
-9
lines changed Original file line number Diff line number Diff line change 3737 "coveralls" : " 2.13.1" ,
3838 "eslint" : " 4.2.0" ,
3939 "jsonapi-server" : " 3.0.2" ,
40+ "lokka" : " 1.7.0" ,
41+ "lokka-transport-http" : " 1.6.1" ,
4042 "mocha" : " 3.4.2" ,
4143 "mocha-lcov-reporter" : " 1.3.0" ,
4244 "mocha-performance" : " 0.1.1" ,
Original file line number Diff line number Diff line change @@ -20,16 +20,11 @@ var path = require("path");
2020var base = path . join ( __dirname , "../node_modules/jsonapi-server/test" ) ;
2121
2222fs . readdirSync ( base ) . forEach ( function ( filename ) {
23- try {
24- var filePath = path . join ( base , filename )
23+ var filePath = path . join ( base , filename )
2524
26- // If the current file we're attempting to read is a directory, don't require it.
27- if ( fs . lstatSync ( filePath ) . isDirectory ( ) ) {
28-
29- } else {
30- require ( filePath )
31- }
32- } catch ( e ) { }
25+ if ( ! fs . lstatSync ( filePath ) . isDirectory ( ) ) {
26+ require ( filePath )
27+ }
3328} ) ;
3429
3530// Before starting the test suite, load all example resouces, aka
You can’t perform that action at this time.
0 commit comments