node-server-engine 1.0.6 → 1.0.7

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/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "node-server-engine",
3
- "version": "1.0.6",
3
+ "version": "1.0.7",
4
4
  "description": "Framework used to develop backend services. This package ships with a lot of features to standardize the creation of services, letting you focus on the business logic.",
5
5
  "main": "dist/index.js",
6
6
  "scripts": {
@@ -48,7 +48,7 @@
48
48
  "@opentelemetry/metrics": "^0.24.0",
49
49
  "ajv": "^8.17.1",
50
50
  "axios": "^1.7.7",
51
- "backend-test-tools": "^1.0.1",
51
+ "backend-test-tools": "^1.0.2",
52
52
  "body-parser": "^1.20.3",
53
53
  "busboy": "^1.6.0",
54
54
  "callsite": "^1.0.0",
@@ -8,13 +8,13 @@ describe('Middleware - User Resolver', function () {
8
8
  it('should expand the user object with its data using its userId', async function () {
9
9
  const me = factory.build('user');
10
10
  const next = fake();
11
- const request = { user: { id: me.id } } as Request;
11
+ const request: Partial<Request> = { user: { id: me.id } };
12
12
 
13
-
14
- await userResolver(request, undefined as unknown as Response, next);
13
+ // Call the resolver with the mocked request
14
+ await userResolver(request as Request, undefined as unknown as Response, next);
15
15
 
16
16
  expect(next).to.have.been.called;
17
- // expect(request.user).to.deep.equal(me);
17
+ // expect(request.user).to.deep.equal(me);
18
18
  });
19
19
 
20
20
  it('should throw an error if there is no userId', async function () {