Skip to content

Commit

Permalink
Assert content type for 404 response
Browse files Browse the repository at this point in the history
  • Loading branch information
jerico committed Mar 14, 2024
1 parent b564337 commit 86ab1bd
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions tests/test-lambda.ts
Original file line number Diff line number Diff line change
Expand Up @@ -21,6 +21,7 @@ test( 'Test image not found', async () => {
await handler( animatedGifLambdaEvent, testResponseStream );

expect( testResponseStream.metadata.statusCode ).toBe( 404 );
expect( testResponseStream.contentType ).toBe( 'text/html' );
} );

/**
Expand Down

0 comments on commit 86ab1bd

Please sign in to comment.