Skip to content

Commit

Permalink
fix test
Browse files Browse the repository at this point in the history
  • Loading branch information
kayman-mk committed Aug 29, 2024
1 parent 0641910 commit 44b5529
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions lib/modules/datasource/aws-lambda-layer/index.spec.ts
Original file line number Diff line number Diff line change
Expand Up @@ -224,13 +224,13 @@ describe('modules/datasource/aws-lambda-layer/index', () => {
});

describe('getReleases', () => {
it('should return null if the filter criteria does not match the schema', async () => {
it('should throw an exception if the filter criteria does not match the schema', async () => {
const lambdaLayerDatasource = new AwsLambdaLayerDataSource();
const res = await lambdaLayerDatasource.getReleases({
const res = lambdaLayerDatasource.getReleases({
packageName: '{"invalid": "json"}',
});

expect(res).toBeNull();
await expect(res).rejects.toThrow();
});

it('should throw an exception if version is not set in AWS response', async () => {
Expand Down

0 comments on commit 44b5529

Please sign in to comment.