Skip to content

Commit 6f3270d

Browse files
committed
update script line number test
1 parent 9f702fe commit 6f3270d

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

test/test.js

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -141,6 +141,7 @@ describe('vue-loader', function () {
141141
getFile('test.build.js.map', function (map) {
142142
var smc = new SourceMapConsumer(JSON.parse(map))
143143
getFile('test.build.js', function (code) {
144+
console.log(code)
144145
var line
145146
code.split('\n').some(function (l, i) {
146147
if (l.indexOf('Hello from Component A') > -1) {
@@ -153,7 +154,7 @@ describe('vue-loader', function () {
153154
column: 0
154155
})
155156
expect(pos.source.indexOf('webpack:///test/fixtures/basic.vue') > -1)
156-
expect(pos.line).to.equal(4)
157+
expect(pos.line).to.equal(15)
157158
done()
158159
})
159160
})

0 commit comments

Comments
 (0)