We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 3c2c929 commit 014cb20Copy full SHA for 014cb20
src/utils/path.test.ts
@@ -76,6 +76,11 @@ describe('handleTrailingSlash', () => {
76
const expectation = handleTrailingSlash('https://example.com');
77
expect(expectation).toBe('https://example.com/');
78
});
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
+ });
84
85
86
describe('trimSlashes', () => {
0 commit comments