MCPcopy Index your code
hub / github.com/codeceptjs/CodeceptJS / normalizePath

Function normalizePath

lib/utils.js:171–176  ·  view source on GitHub ↗
(path)

Source from the content-addressed store, hash-verified

169}
170
171export const normalizePath = function (path) {
172 if (path === '' || path === '/') return '/'
173 return path
174 .replace(/\/+/g, '/')
175 .replace(/\/$/, '') || '/'
176}
177
178export const resolveUrl = function (url, baseUrl) {
179 if (!url) return url

Callers 9

seeCurrentPathEqualsMethod · 0.90
waitCurrentPathEqualsMethod · 0.90
seeCurrentPathEqualsMethod · 0.90
waitCurrentPathEqualsMethod · 0.90
seeCurrentPathEqualsMethod · 0.90
waitCurrentPathEqualsMethod · 0.90

Calls

no outgoing calls

Tested by

no test coverage detected