refactor: Add empty lines to improve readibility for flow tests
This commit is contained in:
@@ -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',
|
||||||
|
Reference in New Issue
Block a user