提交 0ca1b580 authored 作者: Will Chen's avatar Will Chen

Fix types in test

上级 59de308e
......@@ -490,6 +490,7 @@ describe("processFullResponse", () => {
1,
{
chatSummary: undefined,
messageId: 1,
}
);
expect(result).toEqual({});
......@@ -506,6 +507,7 @@ describe("processFullResponse", () => {
const result = await processFullResponseActions(response, 1, {
chatSummary: undefined,
messageId: 1,
});
expect(fs.mkdirSync).toHaveBeenCalledWith(
......@@ -535,6 +537,7 @@ describe("processFullResponse", () => {
const result = await processFullResponseActions(response, 1, {
chatSummary: undefined,
messageId: 1,
});
expect(result).toHaveProperty("error");
......@@ -560,6 +563,7 @@ describe("processFullResponse", () => {
const result = await processFullResponseActions(response, 1, {
chatSummary: undefined,
messageId: 1,
});
// Check that directories were created for each file path
......@@ -625,6 +629,7 @@ describe("processFullResponse", () => {
const result = await processFullResponseActions(response, 1, {
chatSummary: undefined,
messageId: 1,
});
expect(fs.mkdirSync).toHaveBeenCalledWith(
......@@ -657,6 +662,7 @@ describe("processFullResponse", () => {
const result = await processFullResponseActions(response, 1, {
chatSummary: undefined,
messageId: 1,
});
expect(fs.mkdirSync).toHaveBeenCalled();
......@@ -674,6 +680,7 @@ describe("processFullResponse", () => {
const result = await processFullResponseActions(response, 1, {
chatSummary: undefined,
messageId: 1,
});
expect(fs.unlinkSync).toHaveBeenCalledWith(
......@@ -696,6 +703,7 @@ describe("processFullResponse", () => {
const result = await processFullResponseActions(response, 1, {
chatSummary: undefined,
messageId: 1,
});
expect(fs.unlinkSync).not.toHaveBeenCalled();
......@@ -720,6 +728,7 @@ describe("processFullResponse", () => {
const result = await processFullResponseActions(response, 1, {
chatSummary: undefined,
messageId: 1,
});
// Check write operation happened
......
Markdown 格式
0%
您添加了 0 到此讨论。请谨慎行事。
请先完成此评论的编辑!
注册 或者 后发表评论