Fix types in test

This commit is contained in:
Will Chen
2025-04-18 14:29:40 -07:00
parent 59de308e82
commit 0ca1b58005

View File

@@ -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