Skip to content

Commit

Permalink
empty test
Browse files Browse the repository at this point in the history
  • Loading branch information
gloomweaver committed Sep 26, 2024
1 parent bca35a8 commit 39b7039
Showing 1 changed file with 18 additions and 0 deletions.
18 changes: 18 additions & 0 deletions packages/automation-kit/src/createWorkflow.test.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,18 @@
import { describe, it, expect } from 'vitest';

import { createWorkflow, type CreateWorkflowParams } from './createWorkflow';

describe('createWorkflow', () => {
it('should handle empty triggers and actions', () => {
const workflow = createWorkflow({
// biome-ignore lint/suspicious/noExplicitAny: <explanation>
kit: {} as any, // Mocking AutomationKit as it's not used in the current implementation
triggers: [],
actions: [],
});
const builtWorkflow = workflow.build();

expect(builtWorkflow.triggersCallData).toEqual([]);
expect(builtWorkflow.actionsCallData).toEqual([]);
});
});

0 comments on commit 39b7039

Please sign in to comment.