mirror of https://github.com/vuejs/vitepress
Merge 551cccc9a3
into f0a37b4b84
commit
4bc637d4ce
@ -1,12 +0,0 @@
|
||||
import { ensureStartingSlash } from 'client/theme-default/support/utils'
|
||||
|
||||
describe('client/theme-default/utils', () => {
|
||||
describe('ensureStartingSlash', () => {
|
||||
test('it adds slash to the beginning of the given path', () => {
|
||||
expect(ensureStartingSlash('path')).toBe('/path')
|
||||
expect(ensureStartingSlash('path/nested')).toBe('/path/nested')
|
||||
expect(ensureStartingSlash('/path')).toBe('/path')
|
||||
expect(ensureStartingSlash('/path/nested')).toBe('/path/nested')
|
||||
})
|
||||
})
|
||||
})
|
Loading…
Reference in new issue