Skip to content

Commit 4277959

Browse files
committed
Testing default options in run task unit test
1 parent 49322b3 commit 4277959

File tree

1 file changed

+9
-0
lines changed

1 file changed

+9
-0
lines changed

index.test.js

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1146,6 +1146,15 @@ describe('Deploy to ECS', () => {
11461146
expect(mockEcsRegisterTaskDef).toHaveBeenNthCalledWith(1, { family: 'task-def-family' });
11471147
expect(core.setOutput).toHaveBeenNthCalledWith(1, 'task-definition-arn', 'task:def:arn');
11481148
expect(mockRunTask).toHaveBeenCalledTimes(1);
1149+
expect(mockRunTask).toHaveBeenNthCalledWith(1,{
1150+
startedBy: 'GitHub-Actions',
1151+
cluster: 'default',
1152+
launchType: 'FARGATE',
1153+
taskDefinition: 'task:def:arn',
1154+
overrides: {"containerOverrides": []},
1155+
networkConfiguration: {},
1156+
});
1157+
11491158
expect(core.setOutput).toHaveBeenNthCalledWith(2, 'run-task-arn', ["arn:aws:ecs:fake-region:account_id:task/arn"]);
11501159
});
11511160

0 commit comments

Comments
 (0)