@tryghost/express-test 0.13.7 → 0.13.9
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/index.js
CHANGED
|
@@ -1,6 +1,7 @@
|
|
|
1
|
+
/* eslint-disable ghost/ghost-custom/no-native-error */
|
|
1
2
|
const {CookieJar} = require('cookiejar');
|
|
2
|
-
const ExpectRequest = require('./
|
|
3
|
-
const {RequestOptions} = require('./
|
|
3
|
+
const ExpectRequest = require('./ExpectRequest');
|
|
4
|
+
const {RequestOptions} = require('./Request');
|
|
4
5
|
const {normalizeURL} = require('./utils');
|
|
5
6
|
|
|
6
7
|
/**
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
const assert = require('assert');
|
|
2
|
-
const {Request, RequestOptions} = require('./
|
|
2
|
+
const {Request, RequestOptions} = require('./Request');
|
|
3
3
|
const {snapshotManager} = require('@tryghost/jest-snapshot');
|
|
4
4
|
|
|
5
5
|
/**
|
|
@@ -30,7 +30,8 @@ class ExpectRequest extends Request {
|
|
|
30
30
|
|
|
31
31
|
expect(callback) {
|
|
32
32
|
if (typeof callback !== 'function') {
|
|
33
|
-
|
|
33
|
+
// eslint-disable-next-line ghost/ghost-custom/no-native-error
|
|
34
|
+
throw new Error(
|
|
34
35
|
'express-test expect() requires a callback function, did you mean expectStatus or expectHeader?'
|
|
35
36
|
);
|
|
36
37
|
}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@tryghost/express-test",
|
|
3
|
-
"version": "0.13.
|
|
3
|
+
"version": "0.13.9",
|
|
4
4
|
"repository": "https://github.com/TryGhost/framework/tree/main/packages/express-test",
|
|
5
5
|
"author": "Ghost Foundation",
|
|
6
6
|
"license": "MIT",
|
|
@@ -19,18 +19,18 @@
|
|
|
19
19
|
"access": "public"
|
|
20
20
|
},
|
|
21
21
|
"devDependencies": {
|
|
22
|
-
"c8": "
|
|
22
|
+
"c8": "8.0.1",
|
|
23
23
|
"express": "4.18.2",
|
|
24
24
|
"express-session": "1.17.3",
|
|
25
25
|
"form-data": "^4.0.0",
|
|
26
26
|
"mocha": "10.2.0",
|
|
27
27
|
"multer": "^1.4.5-lts.1",
|
|
28
|
-
"sinon": "
|
|
28
|
+
"sinon": "17.0.1"
|
|
29
29
|
},
|
|
30
30
|
"dependencies": {
|
|
31
|
-
"@tryghost/jest-snapshot": "^0.5.
|
|
31
|
+
"@tryghost/jest-snapshot": "^0.5.9",
|
|
32
32
|
"cookiejar": "^2.1.3",
|
|
33
33
|
"reqresnext": "^1.7.0"
|
|
34
34
|
},
|
|
35
|
-
"gitHead": "
|
|
35
|
+
"gitHead": "2a91c8a1f54eef339c90e381252a1c8bbb7aeee4"
|
|
36
36
|
}
|
|
File without changes
|