Skip to content

Commit

Permalink
fix: updated tests
Browse files Browse the repository at this point in the history
  • Loading branch information
mamu0 committed Jan 10, 2025
1 parent 513b44a commit 8b82080
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,7 @@ const makeEvent = (uri: string): AWSCloudFrontFunction.Event => ({
describe('handler', () => {
it('should append the html suffix', () => {
expect(handler(makeEvent('/page')).uri).toBe('/page.html');
expect(handler(makeEvent('/page/')).uri).toBe('/page/');
expect(handler(makeEvent('/page/')).uri).toBe('/page.html');
expect(handler(makeEvent('/image.jpg')).uri).toBe('/image.jpg');
expect(handler(makeEvent('/font.woff2')).uri).toBe('/font.woff2'); // new test case
const example0 = '/i-s/g/mo/v1.0/i-p/p-i/v-d';
Expand Down

0 comments on commit 8b82080

Please sign in to comment.