@tryghost/express-test 0.13.3 → 0.13.5

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -198,7 +198,7 @@ class ExpectRequest extends Request {
198
198
 
199
199
  error.message = `Expected statusCode ${assertion.expected}, got statusCode ${response.statusCode} ${error.contextString}`;
200
200
 
201
- if (response.body && response.body.errors && response.body.errors[0].message) {
201
+ if (response.body && response.body.errors && response.body.errors[0] && response.body.errors[0].message) {
202
202
  error.message += `\n${response.body.errors[0].message}`;
203
203
 
204
204
  if (response.body.errors[0].context) {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@tryghost/express-test",
3
- "version": "0.13.3",
3
+ "version": "0.13.5",
4
4
  "repository": "https://github.com/TryGhost/framework/tree/main/packages/express-test",
5
5
  "author": "Ghost Foundation",
6
6
  "license": "MIT",
@@ -25,12 +25,12 @@
25
25
  "form-data": "^4.0.0",
26
26
  "mocha": "10.2.0",
27
27
  "multer": "^1.4.5-lts.1",
28
- "sinon": "15.0.3"
28
+ "sinon": "15.0.4"
29
29
  },
30
30
  "dependencies": {
31
- "@tryghost/jest-snapshot": "^0.5.3",
31
+ "@tryghost/jest-snapshot": "^0.5.5",
32
32
  "cookiejar": "^2.1.3",
33
33
  "reqresnext": "^1.7.0"
34
34
  },
35
- "gitHead": "ef4fed43a97573417f518409af0bfe957b3a1564"
35
+ "gitHead": "4bf425a83dabe8e70ee28dffa37cf678b640068e"
36
36
  }