Skip to content

Commit

Permalink
fix tests
Browse files Browse the repository at this point in the history
  • Loading branch information
LuisDuarte1 committed Dec 18, 2024
1 parent b69af62 commit 9fa4053
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 6 deletions.
4 changes: 2 additions & 2 deletions fixtures/workflow-multiple/src/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,7 @@ export class Demo extends WorkflowEntrypoint<{}, Params> {
};
});

return [result, result2, timestamp, payload, "workflow1"];
return "i'm workflow1";
}
}

Expand All @@ -53,7 +53,7 @@ export class Demo2 extends WorkflowEntrypoint<{}, Params> {
};
});

return [result, result2, timestamp, payload, "workflow2"];
return "i'm workflow2";
}
}

Expand Down
12 changes: 8 additions & 4 deletions fixtures/workflow-multiple/tests/index.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -48,7 +48,8 @@ describe("Workflows", () => {
id: "test",
status: {
status: "running",
output: [],
__LOCAL_DEV_STEP_OUTPUTS: [],
output: null,
},
};

Expand All @@ -65,7 +66,8 @@ describe("Workflows", () => {
id: "test",
status: {
status: "running",
output: [{ output: "First step result" }],
__LOCAL_DEV_STEP_OUTPUTS: [{ output: "First step result" }],
output: null,
},
};
await Promise.all([
Expand Down Expand Up @@ -96,10 +98,11 @@ describe("Workflows", () => {
id: "test",
status: {
status: "complete",
output: [
__LOCAL_DEV_STEP_OUTPUTS: [
{ output: "First step result" },
{ output: "workflow1" },
],
output: "i'm workflow1",
},
});
},
Expand All @@ -113,10 +116,11 @@ describe("Workflows", () => {
id: "test",
status: {
status: "complete",
output: [
__LOCAL_DEV_STEP_OUTPUTS: [
{ output: "First step result" },
{ output: "workflow2" },
],
output: "i'm workflow2",
},
});
},
Expand Down

0 comments on commit 9fa4053

Please sign in to comment.