Skip to content

Commit e33ebb4

Browse files
authored
docs(lambda-nodejs): fix typos (#32873)
### 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*
1 parent 7b4162a commit e33ebb4

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

packages/aws-cdk-lib/aws-lambda-nodejs/test/util.test.ts

+2-2
Original file line numberDiff line numberDiff line change
@@ -123,14 +123,14 @@ describe('exec', () => {
123123
test('non zero status', () => {
124124
const spawnSyncMock = jest.spyOn(child_process, 'spawnSync').mockReturnValue({
125125
status: 999,
126-
stderr: Buffer.from('error occured'),
126+
stderr: Buffer.from('error occurred'),
127127
stdout: Buffer.from('stdout'),
128128
pid: 123,
129129
output: ['stdout', 'stderr'],
130130
signal: null,
131131
});
132132

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

135135
spawnSyncMock.mockRestore();
136136
});

0 commit comments

Comments
 (0)