@mikemajesty/microservice-crud 7.1.5 → 7.1.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/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@mikemajesty/microservice-crud",
3
- "version": "7.1.5",
3
+ "version": "7.1.6",
4
4
  "description": "Monorepo CLI",
5
5
  "main": "src/cli.js",
6
6
  "type": "module",
@@ -60,7 +60,7 @@ describe(${dashToPascal(name)}DeleteUsecase.name, () => {
60
60
  test('when ${snakeToCamel(name)} not found, should expect an error', async () => {
61
61
  repository.findById = TestUtils.mockResolvedValue<${dashToPascal(name)}Entity>(null);
62
62
 
63
- await expect(usecase.execute({ id: TestUtils.getMockUUID() })).rejects.toThrow(ApiNotFoundException);
63
+ await expect(usecase.execute({ id: TestUtils.mockUUID() })).rejects.toThrow(ApiNotFoundException);
64
64
  });
65
65
 
66
66
  test('when ${snakeToCamel(name)} deleted successfully, should expect a ${snakeToCamel(name)} deleted', async () => {
@@ -54,7 +54,7 @@ describe(${dashToPascal(name)}GetByIdUsecase.name, () => {
54
54
  test('when ${snakeToCamel(name)} not found, should expect an error', async () => {
55
55
  repository.findById = TestUtils.mockResolvedValue<${dashToPascal(name)}Entity>(null);
56
56
 
57
- await expect(usecase.execute({ id: TestUtils.getMockUUID() })).rejects.toThrow(ApiNotFoundException);
57
+ await expect(usecase.execute({ id: TestUtils.mockUUID() })).rejects.toThrow(ApiNotFoundException);
58
58
  });
59
59
 
60
60
  const mock = new ZodMockSchema(${dashToPascal(name)}EntitySchema);
@@ -66,14 +66,14 @@ describe(${dashToPascal(name)}UpdateUsecase.name, () => {
66
66
  test('when ${snakeToCamel(name)} not found, should expect an error', async () => {
67
67
  repository.findById = TestUtils.mockResolvedValue<${dashToPascal(name)}Entity>(null);
68
68
 
69
- await expect(usecase.execute({ id: TestUtils.getMockUUID() })).rejects.toThrow(ApiNotFoundException);
69
+ await expect(usecase.execute({ id: TestUtils.mockUUID() })).rejects.toThrow(ApiNotFoundException);
70
70
  });
71
71
 
72
72
  test('when ${snakeToCamel(name)} updated successfully, should expect a ${snakeToCamel(name)} updated', async () => {
73
73
  repository.findById = TestUtils.mockResolvedValue<${dashToPascal(name)}Entity>(input);
74
74
  repository.updateOne = TestUtils.mockResolvedValue<UpdatedModel>();
75
75
 
76
- await expect(usecase.execute({ id: TestUtils.getMockUUID() })).resolves.toEqual(input);
76
+ await expect(usecase.execute({ id: TestUtils.mockUUID() })).resolves.toEqual(input);
77
77
  });
78
78
  });
79
79
  `