Skip to content

Commit

Permalink
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
fix unit tests
Browse files Browse the repository at this point in the history
YannickVR committed Oct 4, 2024
1 parent d60d645 commit 91df0b6
Showing 2 changed files with 37 additions and 37 deletions.
36 changes: 18 additions & 18 deletions test/unit-tests/plugin/impl/cdk-build-task-plugin.test.ts
Original file line number Diff line number Diff line change
@@ -48,24 +48,24 @@ describe('when creating cdk plugin', () => {

});

describe('when validating task', () => {
let plugin: CdkBuildTaskPlugin;
let commandArgs: ICdkCommandArgs;

beforeEach(() => {
plugin = new CdkBuildTaskPlugin();
commandArgs = plugin.convertToCommandArgs( {
FilePath: './tasks.yaml',
Type: 'cdk',
MaxConcurrentTasks: 1,
FailedTaskTolerance: 4,
LogicalName: 'test-task',
Path: './',
TaskRoleName: 'TaskRole',
OrganizationBinding: { IncludeMasterAccount: true}},
{ organizationFile: './organization.yml'} as any);
});
});
// describe('when validating task', () => {
// let plugin: CdkBuildTaskPlugin;
// let commandArgs: ICdkCommandArgs;

// beforeEach(() => {
// plugin = new CdkBuildTaskPlugin();
// commandArgs = plugin.convertToCommandArgs( {
// FilePath: './tasks.yaml',
// Type: 'cdk',
// MaxConcurrentTasks: 1,
// FailedTaskTolerance: 4,
// LogicalName: 'test-task',
// Path: './',
// TaskRoleName: 'TaskRole',
// OrganizationBinding: { IncludeMasterAccount: true}},
// { organizationFile: './organization.yml'} as any);
// });
// });

describe('when resolving attribute expressions on update', () => {
let spawnProcessForAccountSpy: jest.SpyInstance;
38 changes: 19 additions & 19 deletions test/unit-tests/plugin/impl/sls-build-task-plugin.test.ts
Original file line number Diff line number Diff line change
@@ -50,25 +50,25 @@ describe('when creating sls plugin', () => {
});


describe('when validating task', () => {
let plugin: SlsBuildTaskPlugin;
let commandArgs: ISlsCommandArgs;

beforeEach(() => {
plugin = new SlsBuildTaskPlugin();
commandArgs = plugin.convertToCommandArgs( {
FilePath: './tasks.yaml',
Type: 'update-serverless.com',
MaxConcurrentTasks: 1,
FailedTaskTolerance: 4,
LogicalName: 'test-task',
Path: './',
Config: './README.md',
TaskRoleName: 'TaskRole',
OrganizationBinding: { IncludeMasterAccount: true}},
{ organizationFile: './organization.yml'} as any);
});
});
// describe('when validating task', () => {
// let plugin: SlsBuildTaskPlugin;
// let commandArgs: ISlsCommandArgs;

// beforeEach(() => {
// plugin = new SlsBuildTaskPlugin();
// commandArgs = plugin.convertToCommandArgs( {
// FilePath: './tasks.yaml',
// Type: 'update-serverless.com',
// MaxConcurrentTasks: 1,
// FailedTaskTolerance: 4,
// LogicalName: 'test-task',
// Path: './',
// Config: './README.md',
// TaskRoleName: 'TaskRole',
// OrganizationBinding: { IncludeMasterAccount: true}},
// { organizationFile: './organization.yml'} as any);
// });
// });


describe('when resolving attribute expressions on update', () => {

0 comments on commit 91df0b6

Please sign in to comment.