Skip to content

Commit

Permalink
Fix jsonServer hook
Browse files Browse the repository at this point in the history
  • Loading branch information
jeromemacias committed Sep 23, 2016
1 parent da1d30d commit d9dc62c
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 2 deletions.
5 changes: 3 additions & 2 deletions package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "nodium",
"version": "0.1.1",
"version": "0.1.2",
"description": "Pure nodejs selenium webdriver functional helpers",
"homepage": "https://github.com/jeromemacias/nodium",
"repository": {
Expand Down Expand Up @@ -39,6 +39,7 @@
"chai": "~3.5",
"chai-as-promised": "~5.3",
"pm2": "*",
"request": "2.*"
"request": "2.*",
"json-server": "0.8.*"
}
}
2 changes: 2 additions & 0 deletions src/hook/jsonServer.js
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
import jsonServer from 'json-server';

export function jsonServerStart(defaults = {}, port = 3030) {
const server = jsonServer.create();
server.use(bodyParser.json());
Expand Down

0 comments on commit d9dc62c

Please sign in to comment.