Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Appearance settings

Commit 173b9ab

Browse filesBrowse files
committed
fix tests
1 parent fc68522 commit 173b9ab
Copy full SHA for 173b9ab

File tree

Expand file treeCollapse file tree

1 file changed

+3
-4
lines changed
Filter options
Expand file treeCollapse file tree

1 file changed

+3
-4
lines changed

‎test/test.js

Copy file name to clipboardExpand all lines: test/test.js
+3-4Lines changed: 3 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -152,12 +152,11 @@ describe('vue-loader', function () {
152152
getFile('test.build.js', function (code) {
153153
var line
154154
var col
155-
var lines = code.split(/\r?\n/g)
156155
var targetRE = /^\s+msg: 'Hello from Component A!'/
157-
lines.some(function (l, i) {
156+
code.split(/\r?\n/g).some(function (l, i) {
158157
if (targetRE.test(l)) {
159-
line = i
160-
col = lines[i - 1].length
158+
line = i + 1
159+
col = l.length
161160
return true
162161
}
163162
})

0 commit comments

Comments
0 (0)
Morty Proxy This is a proxified and sanitized view of the page, visit original site.