Skip to content

Commit

Permalink
chore(lambda-nodejs): fix typo
Browse files Browse the repository at this point in the history
  • Loading branch information
andyu17 committed Jan 13, 2025
1 parent 5f060f4 commit eb0a829
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 eb0a829

Please sign in to comment.