Skip to content

Commit

Permalink
✔️ Updating test node parameters format
Browse files Browse the repository at this point in the history
  • Loading branch information
MiloradFilipovic committed Jan 27, 2025
1 parent b0203ae commit 615669c
Showing 1 changed file with 10 additions and 5 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -32,11 +32,16 @@ describe('ExecuteWorkflowTrigger', () => {

it('should filter out parent input in `Using Fields below` mode', async () => {
executeFns.getNodeParameter.mockReturnValueOnce(WORKFLOW_INPUTS);
const mockNewParams = [
{ name: 'value1', type: 'string' },
{ name: 'value2', type: 'number' },
{ name: 'foo', type: 'string' },
] as FieldValueOption[];
const mockNewParams: {
fields: FieldValueOption[];
noFieldsMessage?: string;
} = {
fields: [
{ name: 'value1', type: 'string' },
{ name: 'value2', type: 'number' },
{ name: 'foo', type: 'string' },
],
};
const getFieldEntriesMock = (getFieldEntries as jest.Mock).mockReturnValue(mockNewParams);

const result = await new ExecuteWorkflowTrigger().execute.call(executeFns);
Expand Down

0 comments on commit 615669c

Please sign in to comment.