功能:完善 API 卡密发货与自动化日志
This commit is contained in:
1 parent
d92fb0f4cc
commit
f5064254dc
106 files changed
+4302
-600
No files matched your search
@@ -875,7 +875,7 @@ test('getCards 解析 JSON 和损坏 JSON 的卡密接口配置', /* 当前回
|
||||
stubContractFetch(fetchMock);
|
||||
// cards 是卡密配置归一化后的库存列表。
|
||||
const cards = await getCards();
|
||||
expect(cards[0].api_config).toEqual({ endpoint: 'https://example.com' });
|
||||
expect(cards[0].api_config).toEqual({ endpoint: 'https://example.com', content_type: 'application/json' });
|
||||
expect(cards[1].api_config).toBeUndefined();
|
||||
});
|
||||
|
||||
|
||||
Reference in new issue
Block a user