test(flow): write model tests

This commit is contained in:
Ali BARIN
2024-10-23 13:00:04 +00:00
committed by Faruk AYDIN
parent 4023a6d1cc
commit fbf898be64
5 changed files with 256 additions and 32 deletions

View File

@@ -6,18 +6,6 @@ const createFlowMock = async (flow) => {
status: flow.status,
createdAt: flow.createdAt.getTime(),
updatedAt: flow.updatedAt.getTime(),
steps: [
{
position: 1,
status: 'incomplete',
type: 'trigger',
},
{
position: 2,
status: 'incomplete',
type: 'action',
},
],
};
return {