Skip to content

Commit

Permalink
docs(lambda-nodejs): fix typos (#32873)
Browse files Browse the repository at this point in the history
### Issue # (if applicable)

None

### Reason for this change

Fixed typos in code comments.

### Checklist
- [x] My code adheres to the [CONTRIBUTING GUIDE](https://github.com/aws/aws-cdk/blob/main/CONTRIBUTING.md) and [DESIGN GUIDELINES](https://github.com/aws/aws-cdk/blob/main/docs/DESIGN_GUIDELINES.md)

----

*By submitting this pull request, I confirm that my contribution is made under the terms of the Apache-2.0 license*
  • Loading branch information
andyu17 authored Jan 13, 2025
1 parent 7b4162a commit e33ebb4
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions packages/aws-cdk-lib/aws-lambda-nodejs/test/util.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -123,14 +123,14 @@ describe('exec', () => {
test('non zero status', () => {
const spawnSyncMock = jest.spyOn(child_process, 'spawnSync').mockReturnValue({
status: 999,
stderr: Buffer.from('error occured'),
stderr: Buffer.from('error occurred'),
stdout: Buffer.from('stdout'),
pid: 123,
output: ['stdout', 'stderr'],
signal: null,
});

expect(() => exec('cmd', ['arg1', 'arg2'])).toThrow('error occured');
expect(() => exec('cmd', ['arg1', 'arg2'])).toThrow('error occurred');

spawnSyncMock.mockRestore();
});
Expand Down

0 comments on commit e33ebb4

Please sign in to comment.