diff --git a/packages/server/src/util.js b/packages/server/src/util.js index 74de06ea4..675188555 100644 --- a/packages/server/src/util.js +++ b/packages/server/src/util.js @@ -10,4 +10,4 @@ export const smartRequire = modulePath => { } export const joinURLPath = (...paths) => - paths.join('/').replace(/(? { `${publicPath}/style.css`, ) }) + it('should join paths with protocol free public path', () => { + const publicPath = '//127.0.0.1/public' + expect(joinURLPath(publicPath, 'style.css')).toBe( + `${publicPath}/style.css`, + ) + }) }) })