Skip to content

Commit

Permalink
feat(internal): add esmodule support (#1738)
Browse files Browse the repository at this point in the history
* feat(testing): add esmodule support

* chore(all): update imports
  • Loading branch information
dreamorosi committed Mar 6, 2024
1 parent 74842c8 commit 54b3f27
Show file tree
Hide file tree
Showing 4 changed files with 8 additions and 10 deletions.
8 changes: 4 additions & 4 deletions packages/batch/tests/unit/processPartialResponse.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -110,7 +110,7 @@ describe('Function: processPartialResponse()', () => {
};

// Act
const result = await handler(event, context.helloworldContext);
const result = await handler(event, context);

// Assess
expect(result).toStrictEqual({ batchItemFailures: [] });
Expand All @@ -137,7 +137,7 @@ describe('Function: processPartialResponse()', () => {
};

// Act
const result = await handler(event, context.helloworldContext);
const result = await handler(event, context);

// Assess
expect(result).toStrictEqual({ batchItemFailures: [] });
Expand All @@ -164,7 +164,7 @@ describe('Function: processPartialResponse()', () => {
};

// Act
const result = await handler(event, context.helloworldContext);
const result = await handler(event, context);

// Assess
expect(result).toStrictEqual({ batchItemFailures: [] });
Expand Down Expand Up @@ -223,7 +223,7 @@ describe('Function: processPartialResponse()', () => {
};

// Act
const result = await handler(event, context.helloworldContext);
const result = await handler(event, context);

// Assess
expect(result).toStrictEqual({ batchItemFailures: [] });
Expand Down
8 changes: 4 additions & 4 deletions packages/batch/tests/unit/processPartialResponseSync.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -110,7 +110,7 @@ describe('Function: processPartialResponse()', () => {
};

// Act
const result = handler(event, context.helloworldContext);
const result = handler(event, context);

// Assess
expect(result).toStrictEqual({ batchItemFailures: [] });
Expand All @@ -137,7 +137,7 @@ describe('Function: processPartialResponse()', () => {
};

// Act
const result = handler(event, context.helloworldContext);
const result = handler(event, context);

// Assess
expect(result).toStrictEqual({ batchItemFailures: [] });
Expand All @@ -164,7 +164,7 @@ describe('Function: processPartialResponse()', () => {
};

// Act
const result = handler(event, context.helloworldContext);
const result = handler(event, context);

// Assess
expect(result).toStrictEqual({ batchItemFailures: [] });
Expand Down Expand Up @@ -219,7 +219,7 @@ describe('Function: processPartialResponse()', () => {
};

// Act
const result = handler(event, context.helloworldContext);
const result = handler(event, context);

// Assess
expect(result).toStrictEqual({ batchItemFailures: [] });
Expand Down
1 change: 0 additions & 1 deletion packages/commons/src/samples/resources/contexts/index.ts

This file was deleted.

1 change: 0 additions & 1 deletion packages/commons/src/samples/resources/events/index.ts

This file was deleted.

0 comments on commit 54b3f27

Please sign in to comment.