@tryghost/express-test 0.8.2 → 0.9.0

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,6 +198,10 @@ class ExpectRequest extends Request {
198
198
 
199
199
  if (response.body && response.body.errors && response.body.errors[0].message) {
200
200
  error.message += `\n${response.body.errors[0].message}`;
201
+
202
+ if (response.body.errors[0].context) {
203
+ error.message += `\n${response.body.errors[0].context}`;
204
+ }
201
205
  }
202
206
 
203
207
  error.actual = response.statusCode;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@tryghost/express-test",
3
- "version": "0.8.2",
3
+ "version": "0.9.0",
4
4
  "repository": "https://github.com/TryGhost/framework/tree/main/packages/express-test",
5
5
  "author": "Ghost Foundation",
6
6
  "license": "MIT",
@@ -23,12 +23,12 @@
23
23
  "express": "4.17.3",
24
24
  "express-session": "1.17.2",
25
25
  "mocha": "9.2.2",
26
- "sinon": "13.0.1"
26
+ "sinon": "13.0.2"
27
27
  },
28
28
  "dependencies": {
29
- "@tryghost/jest-snapshot": "^0.3.10",
29
+ "@tryghost/jest-snapshot": "^0.3.12",
30
30
  "cookiejar": "^2.1.3",
31
31
  "reqresnext": "^1.7.0"
32
32
  },
33
- "gitHead": "f45f64727f13aa64f4cc9fb5ceabf60632ba76b8"
33
+ "gitHead": "9799b440419e56125eabc4ddd34290d3f40733f9"
34
34
  }