Просмотр исходного кода

fix: HealthDimensionControllerTest 适配 history 方法签名变更

iwt 2 месяцев назад
Родитель
Сommit
0e2dbacb92

+ 5 - 5
cfc-backend/src/test/java/com/etotem/cfc/controller/HealthDimensionControllerTest.java

@@ -183,7 +183,7 @@ public class HealthDimensionControllerTest {
         when(dimensionScoreService.getDimensionHistory(10L, "growth", 10))
             .thenReturn(Collections.singletonList(item));
 
-        Result<List<HealthDimensionVO.DimensionItem>> result = controller.history(params, 1L);
+        Result<List<HealthDimensionVO.DimensionItem>> result = controller.history(params, 1L, 1L);
 
         assertEquals(200, result.getCode());
         assertEquals(1, result.getData().size());
@@ -200,7 +200,7 @@ public class HealthDimensionControllerTest {
         when(dimensionScoreService.getDimensionHistory(10L, "sleep", 5))
             .thenReturn(Collections.emptyList());
 
-        Result<List<HealthDimensionVO.DimensionItem>> result = controller.history(params, 1L);
+        Result<List<HealthDimensionVO.DimensionItem>> result = controller.history(params, 1L, 1L);
 
         assertEquals(200, result.getCode());
         assertTrue(result.getData().isEmpty());
@@ -212,7 +212,7 @@ public class HealthDimensionControllerTest {
         Map<String, Object> params = new HashMap<>();
         params.put("dimension", "growth");
 
-        Result<List<HealthDimensionVO.DimensionItem>> result = controller.history(params, 1L);
+        Result<List<HealthDimensionVO.DimensionItem>> result = controller.history(params, 1L, 1L);
 
         assertEquals(500, result.getCode());
         assertEquals("memberId和dimension不能为空", result.getMessage());
@@ -223,7 +223,7 @@ public class HealthDimensionControllerTest {
         Map<String, Object> params = new HashMap<>();
         params.put("memberId", 10L);
 
-        Result<List<HealthDimensionVO.DimensionItem>> result = controller.history(params, 1L);
+        Result<List<HealthDimensionVO.DimensionItem>> result = controller.history(params, 1L, 1L);
 
         assertEquals(500, result.getCode());
         assertEquals("memberId和dimension不能为空", result.getMessage());
@@ -238,7 +238,7 @@ public class HealthDimensionControllerTest {
         when(dimensionScoreService.getDimensionHistory(99L, "vision", 10))
             .thenReturn(Collections.emptyList());
 
-        Result<List<HealthDimensionVO.DimensionItem>> result = controller.history(params, 1L);
+        Result<List<HealthDimensionVO.DimensionItem>> result = controller.history(params, 1L, 1L);
 
         assertEquals(200, result.getCode());
         assertTrue(result.getData().isEmpty());

+ 1 - 1
cfc-web/.last_build_commit

@@ -1 +1 @@
-f8daa71e769ea25cee98867275def1eeaef61377
+6bc1f46ae8f91308e6912f271002a6c86affb744

+ 2 - 2
cfc-web/package-lock.json

@@ -1,12 +1,12 @@
 {
   "name": "cfc-web",
-  "version": "1.0.948",
+  "version": "1.0.949",
   "lockfileVersion": 3,
   "requires": true,
   "packages": {
     "": {
       "name": "cfc-web",
-      "version": "1.0.948",
+      "version": "1.0.949",
       "dependencies": {
         "@wangeditor/editor": "^5.1.23",
         "@wangeditor/editor-for-vue": "^1.0.2",