Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
test(path): add additional tests to join (#5032)
add additional tests to stencil's wrapped version of `path.join`, adding additional documentation to how the wrapped function works. specifically, add tests to verify the following behavior: 1. how trailing slashes are treated by the function 2. how 1+ string arguments of '/' are handled 3. how relative paths going 'up' one directory level are handled such that only a file is resolved the first case of trailing slashes is documented in JSDoc as well to signify a divergence from `path.joing`. this behavior was the impetus for this change - I didn't understand what I was seeing at first when debugging some Stencil 4.x related path related bugs. this commit is spun out from that work. related to: #5029
- Loading branch information