Skip to content

Commit 014cb20

Browse files
committed
chore: add failing test
1 parent 3c2c929 commit 014cb20

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

src/utils/path.test.ts

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -76,6 +76,11 @@ describe('handleTrailingSlash', () => {
7676
const expectation = handleTrailingSlash('https://example.com');
7777
expect(expectation).toBe('https://example.com/');
7878
});
79+
80+
it('should never add trailing slashes to paths with file extensions', () => {
81+
const expectation = handleTrailingSlash('404.html', 'always');
82+
expect(expectation).toBe('404.html');
83+
});
7984
});
8085

8186
describe('trimSlashes', () => {

0 commit comments

Comments
 (0)