We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 7b4162a commit e33ebb4Copy full SHA for e33ebb4
packages/aws-cdk-lib/aws-lambda-nodejs/test/util.test.ts
@@ -123,14 +123,14 @@ describe('exec', () => {
123
test('non zero status', () => {
124
const spawnSyncMock = jest.spyOn(child_process, 'spawnSync').mockReturnValue({
125
status: 999,
126
- stderr: Buffer.from('error occured'),
+ stderr: Buffer.from('error occurred'),
127
stdout: Buffer.from('stdout'),
128
pid: 123,
129
output: ['stdout', 'stderr'],
130
signal: null,
131
});
132
133
- expect(() => exec('cmd', ['arg1', 'arg2'])).toThrow('error occured');
+ expect(() => exec('cmd', ['arg1', 'arg2'])).toThrow('error occurred');
134
135
spawnSyncMock.mockRestore();
136
0 commit comments