refactor(tik): 调整混测用例构造参数并修复前端按钮样式
Some checks failed
Build and Deploy / deploy (push) Has been cancelled
Some checks failed
Build and Deploy / deploy (push) Has been cancelled
- 在 `BatchProduceAlignmentTest` 中添加 `FileApi` 和 `IceClient` 模拟依赖,更新构造方法调用 - 移除前端 `一键填充` 按钮的 `variant="outline"` 属性
This commit is contained in:
@@ -100,7 +100,7 @@
|
||||
<Icon icon="lucide:eraser" class="mr-1" />
|
||||
清空
|
||||
</Button>
|
||||
<Button variant="outline" size="sm" @click="autoFillAllScenes">
|
||||
<Button size="sm" @click="autoFillAllScenes">
|
||||
<Icon icon="lucide:zap" class="mr-1" />
|
||||
一键填充
|
||||
</Button>
|
||||
|
||||
@@ -1,6 +1,8 @@
|
||||
package cn.iocoder.yudao.module.tik.media;
|
||||
|
||||
import cn.iocoder.yudao.module.infra.api.file.FileApi;
|
||||
import cn.iocoder.yudao.module.tik.file.service.TikOssInitService;
|
||||
import cn.iocoder.yudao.module.tik.mix.client.IceClient;
|
||||
import cn.iocoder.yudao.module.tik.mix.config.IceProperties;
|
||||
import com.alibaba.fastjson.JSONArray;
|
||||
import com.alibaba.fastjson.JSONObject;
|
||||
@@ -23,14 +25,20 @@ class BatchProduceAlignmentTest {
|
||||
@Mock
|
||||
private IceProperties iceProperties;
|
||||
|
||||
@Mock
|
||||
private FileApi fileApi;
|
||||
|
||||
@Mock
|
||||
private TikOssInitService ossInitService;
|
||||
|
||||
@Mock
|
||||
private IceClient iceClient;
|
||||
|
||||
private BatchProduceAlignment batchProduceAlignment;
|
||||
|
||||
@BeforeEach
|
||||
void setUp() {
|
||||
batchProduceAlignment = new BatchProduceAlignment(iceProperties, null, ossInitService);
|
||||
batchProduceAlignment = new BatchProduceAlignment(iceProperties, fileApi, ossInitService, iceClient);
|
||||
}
|
||||
|
||||
@Test
|
||||
|
||||
Reference in New Issue
Block a user