Skip to content

Commit 6d69ca7

Browse files
joseph-normanpmcnr-hx
authored andcommitted
Adding in lokka packages as dependencies, removing try catch block to expose error messages
1 parent 2a66840 commit 6d69ca7

File tree

2 files changed

+6
-9
lines changed

2 files changed

+6
-9
lines changed

package.json

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -37,6 +37,8 @@
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",

test/proxy.js

Lines changed: 4 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -20,16 +20,11 @@ var path = require("path");
2020
var base = path.join(__dirname, "../node_modules/jsonapi-server/test");
2121

2222
fs.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

0 commit comments

Comments
 (0)