Skip to content

Commit 29bc557

Browse files
committed
test: fix windows path
1 parent 57926ab commit 29bc557

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

packages/@vue/cli-plugin-eslint/__tests__/eslintPlugin.spec.js

+1-1
Original file line numberDiff line numberDiff line change
@@ -317,6 +317,6 @@ foo=42
317317
expect(await read('src/main.js')).toMatch(';')
318318

319319
const resultsContents = JSON.parse(await read(resultsFile))
320-
const resultForMain = resultsContents.find(({ filePath }) => filePath.endsWith('src/main.js'))
320+
const resultForMain = resultsContents.find(({ filePath }) => filePath.endsWith(path.join('src', 'main.js')))
321321
expect(resultForMain.messages.length).toBe(0)
322322
})

0 commit comments

Comments
 (0)