Skip to content

Commit 2ed441a

Browse files
authored
Merge pull request #5 from LoicMahieu/update-deps
Update deps
2 parents bca5404 + 3769f09 commit 2ed441a

File tree

5 files changed

+1623
-1064
lines changed

5 files changed

+1623
-1064
lines changed

.travis.yml

Lines changed: 2 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -2,8 +2,5 @@
22
language: node_js
33

44
node_js:
5-
- 0.10
6-
- 0.11
7-
- 0.12
8-
- 4
9-
- 5
5+
- 10
6+
- 12

lib/helpers-before.js

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -282,6 +282,15 @@ _describe.whenCalledRemotely = function (verb, url, data, cb) {
282282
test.req = test.http.req
283283
test.res = test.http.res
284284
delete test.url
285+
286+
if (
287+
typeof test.res.body === 'undefined' &&
288+
test.res.headers['content-type'] &&
289+
test.res.headers['content-type'].includes('json')
290+
) {
291+
test.res.body = JSON.parse(test.res.text)
292+
}
293+
285294
cb()
286295
})
287296
})

lib/helpers.js

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -316,6 +316,15 @@ _describe.whenCalledRemotely = function (verb, url, data, cb) {
316316
test.req = test.http.req
317317
test.res = test.http.res
318318
delete test.url
319+
320+
if (
321+
typeof test.res.body === 'undefined' &&
322+
test.res.headers['content-type'] &&
323+
test.res.headers['content-type'].includes('json')
324+
) {
325+
test.res.body = JSON.parse(test.res.text)
326+
}
327+
319328
cb()
320329
})
321330
})

package.json

Lines changed: 11 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -13,20 +13,20 @@
1313
},
1414
"author": "Ritchie Martori",
1515
"dependencies": {
16-
"async": "^1.5.1",
17-
"chai": "^3.4.1",
18-
"supertest": "^1.1.0"
16+
"async": "^3.2.0",
17+
"chai": "^4.2.0",
18+
"supertest": "^4.0.2"
1919
},
2020
"devDependencies": {
21-
"eslint": "^5.13.0",
22-
"eslint-config-standard": "^12.0.0",
23-
"eslint-plugin-import": "^2.16.0",
24-
"eslint-plugin-node": "^8.0.1",
25-
"eslint-plugin-promise": "^4.0.1",
26-
"eslint-plugin-standard": "^4.0.0",
21+
"eslint": "^7.9.0",
22+
"eslint-config-standard": "^14.1.1",
23+
"eslint-plugin-import": "^2.22.0",
24+
"eslint-plugin-node": "^11.1.0",
25+
"eslint-plugin-promise": "^4.2.1",
26+
"eslint-plugin-standard": "^4.0.1",
2727
"loopback": "2.26.2",
28-
"mocha": "^2.3.4",
29-
"prettier": "^1.16.3"
28+
"mocha": "^8.1.3",
29+
"prettier": "^2.1.2"
3030
},
3131
"license": "MIT"
3232
}

0 commit comments

Comments
 (0)