提交 bab5dcaf 编写于 作者: Q qiang

fix: pathToGlob tests

上级 202c51c8
......@@ -4,9 +4,9 @@ describe('pathToGlob', () => {
it('path in unix', () => {
expect(pathToGlob('/test', '**/*.js')).toBe('/test/**/*.js')
expect(pathToGlob('/test(1', '**/*.js')).toBe('/test[(]1/**/*.js')
expect(pathToGlob('/test(1', '**/*.js', { escape: true })).toBe(
'/test\\(1/**/*.js'
)
expect(
pathToGlob('/test(1', '**/*.js', { escape: true, windows: false })
).toBe('/test\\(1/**/*.js')
})
it('path in windows', () => {
expect(pathToGlob('C:\\\\test\\test', '**/*.js', { windows: true })).toBe(
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册