@tryghost/express-test 0.13.4 → 0.13.6

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.
package/LICENSE CHANGED
@@ -1,6 +1,6 @@
1
1
  MIT License
2
2
 
3
- Copyright (c) 2013-2022 Ghost Foundation
3
+ Copyright (c) 2013-2023 Ghost Foundation
4
4
 
5
5
  Permission is hereby granted, free of charge, to any person obtaining a copy
6
6
  of this software and associated documentation files (the "Software"), to deal
package/README.md CHANGED
@@ -74,4 +74,4 @@ Follow the instructions for the top-level repo.
74
74
 
75
75
  # Copyright & License
76
76
 
77
- Copyright (c) 2013-2022 Ghost Foundation - Released under the [MIT license](LICENSE).
77
+ Copyright (c) 2013-2023 Ghost Foundation - Released under the [MIT license](LICENSE).
@@ -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.4",
3
+ "version": "0.13.6",
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.4",
31
+ "@tryghost/jest-snapshot": "^0.5.6",
32
32
  "cookiejar": "^2.1.3",
33
33
  "reqresnext": "^1.7.0"
34
34
  },
35
- "gitHead": "8ccfe8d0cb50c4db546bd499fa7f689e82d46e5b"
35
+ "gitHead": "2330ad6fb69583198fb7ffd1b06fce6e4fcbe4d6"
36
36
  }