Skip to content

Commit

Permalink
fix test
Browse files Browse the repository at this point in the history
  • Loading branch information
setu4993 committed Jul 16, 2021
1 parent 2cb09e1 commit 3fdc538
Showing 1 changed file with 6 additions and 6 deletions.
12 changes: 6 additions & 6 deletions packages/@aws-cdk/aws-lambda-python/test/bundling.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -163,12 +163,12 @@ test('Bundling Docker with custom build args', () => {
});

expect(fromBuildMock).toHaveBeenCalledWith(expect.stringContaining('/tmp/python-bundling'),
{
buildArgs: expect({
expect.objectContaining({
buildArgs: expect.objectContaining({
HELLO: 'WORLD',
IMAGE: Runtime.PYTHON_3_7.bundlingImage.image,
}),
},
}),
);
});

Expand All @@ -188,12 +188,12 @@ test('Bundling Docker with custom bundling image', () => {
});

expect(fromBuildMock).toHaveBeenCalledWith(expect.stringContaining('/tmp/python-bundling'),
{
buildArgs: expect({
expect.objectContaining({
buildArgs: expect.objectContaining({
HELLO: 'WORLD',
IMAGE: Runtime.PYTHON_3_7.bundlingImage.image,
}),
file: expect.stringContaining('Dockerfile.build'),
},
}),
);
});

0 comments on commit 3fdc538

Please sign in to comment.