refactor: Add empty lines to improve readibility for flow tests

This commit is contained in:
Faruk AYDIN
2024-10-30 14:38:13 +01:00
parent 5bdc5aed72
commit 96a6cbfb95

View File

@@ -179,17 +179,17 @@ describe('Flow model', () => {
it('createInitialSteps should create one trigger and one action step', async () => { it('createInitialSteps should create one trigger and one action step', async () => {
const flow = await createFlow(); const flow = await createFlow();
await flow.createInitialSteps(); await flow.createInitialSteps();
const steps = await flow.$relatedQuery('steps'); const steps = await flow.$relatedQuery('steps');
expect(steps.length).toBe(2); expect(steps.length).toBe(2);
expect(steps[0]).toMatchObject({ expect(steps[0]).toMatchObject({
flowId: flow.id, flowId: flow.id,
type: 'trigger', type: 'trigger',
position: 1, position: 1,
}); });
expect(steps[1]).toMatchObject({ expect(steps[1]).toMatchObject({
flowId: flow.id, flowId: flow.id,
type: 'action', type: 'action',