@tryghost/express-test 0.13.7 → 0.13.8

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,4 +1,4 @@
1
- module.exports = require('./lib/agent');
1
+ module.exports = require('./lib/Agent');
2
2
 
3
3
  // NOTE: exposing jest-snapshot as a part of express-test to avoid
4
4
  // version mismatching on the client side
@@ -1,6 +1,7 @@
1
+ /* eslint-disable ghost/ghost-custom/no-native-error */
1
2
  const {CookieJar} = require('cookiejar');
2
- const ExpectRequest = require('./expect-request');
3
- const {RequestOptions} = require('./request');
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('./request');
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
- throw new Error(/* eslint-disable-line no-restricted-syntax */
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.7",
3
+ "version": "0.13.8",
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": "7.13.0",
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": "15.0.4"
28
+ "sinon": "17.0.1"
29
29
  },
30
30
  "dependencies": {
31
- "@tryghost/jest-snapshot": "^0.5.7",
31
+ "@tryghost/jest-snapshot": "^0.5.8",
32
32
  "cookiejar": "^2.1.3",
33
33
  "reqresnext": "^1.7.0"
34
34
  },
35
- "gitHead": "c348602ec52d02ed7bbc59acbb46487f6f85b629"
35
+ "gitHead": "a655bcfba6531944b8fd997bf53ccefb9dcf1685"
36
36
  }
File without changes