Fix a mistake in the flow tests

This commit is contained in:
w0rp 2017-09-14 00:10:47 +01:00
parent 52c933cd72
commit 71c2e65d64

View File

@ -38,7 +38,7 @@ Execute(The flow handler should process errors correctly.):
\ "descr": "number", \ "descr": "number",
\ "type": "Blame", \ "type": "Blame",
\ "loc": { \ "loc": {
\ "source": expand('%:p:h'), \ "source": expand('%:p'),
\ "type": "SourceFile", \ "type": "SourceFile",
\ "start": { \ "start": {
\ "line": 417, \ "line": 417,
@ -51,7 +51,7 @@ Execute(The flow handler should process errors correctly.):
\ "offset": 9504 \ "offset": 9504
\ } \ }
\ }, \ },
\ "path": expand('%:p:h'), \ "path": expand('%:p'),
\ "line": 417, \ "line": 417,
\ "endline": 417, \ "endline": 417,
\ "start": 10, \ "start": 10,
@ -72,7 +72,7 @@ Execute(The flow handler should process errors correctly.):
\ "descr": "array type", \ "descr": "array type",
\ "type": "Blame", \ "type": "Blame",
\ "loc": { \ "loc": {
\ "source": expand('%:p:h'), \ "source": expand('%:p'),
\ "type": "SourceFile", \ "type": "SourceFile",
\ "start": { \ "start": {
\ "line": 416, \ "line": 416,
@ -85,7 +85,7 @@ Execute(The flow handler should process errors correctly.):
\ "offset": 9491 \ "offset": 9491
\ } \ }
\ }, \ },
\ "path": expand('%:p:h'), \ "path": expand('%:p'),
\ "line": 416, \ "line": 416,
\ "endline": 416, \ "endline": 416,
\ "start": 43, \ "start": 43,
@ -102,7 +102,7 @@ Execute(The flow handler should process errors correctly.):
\ "descr": "unreachable code", \ "descr": "unreachable code",
\ "type": "Blame", \ "type": "Blame",
\ "loc": { \ "loc": {
\ "source": expand('%:p:h'), \ "source": expand('%:p'),
\ "type": "SourceFile", \ "type": "SourceFile",
\ "start": { \ "start": {
\ "line": 419, \ "line": 419,
@ -115,7 +115,7 @@ Execute(The flow handler should process errors correctly.):
\ "offset": 9626 \ "offset": 9626
\ } \ }
\ }, \ },
\ "path": expand('%:p:h'), \ "path": expand('%:p'),
\ "line": 419, \ "line": 419,
\ "endline": 421, \ "endline": 421,
\ "start": 3, \ "start": 3,
@ -156,7 +156,7 @@ Execute(The flow handler should fetch the correct location for the currently ope
\ "descr": "React element `Foo`", \ "descr": "React element `Foo`",
\ "type": "Blame", \ "type": "Blame",
\ "loc": { \ "loc": {
\ "source": expand('%:p:h'), \ "source": expand('%:p'),
\ "type": "SourceFile", \ "type": "SourceFile",
\ "start": { \ "start": {
\ "line": 6, \ "line": 6,
@ -169,7 +169,7 @@ Execute(The flow handler should fetch the correct location for the currently ope
\ "offset": 108 \ "offset": 108
\ } \ }
\ }, \ },
\ "path": expand('%:p:h'), \ "path": expand('%:p'),
\ "line": 6, \ "line": 6,
\ "endline": 6, \ "endline": 6,
\ "start": 3, \ "start": 3,
@ -214,7 +214,7 @@ Execute(The flow handler should fetch the correct location for the currently ope
\ "descr": "props of React element `Foo`", \ "descr": "props of React element `Foo`",
\ "type": "Blame", \ "type": "Blame",
\ "loc": { \ "loc": {
\ "source": expand('%:p:h'), \ "source": expand('%:p'),
\ "type": "SourceFile", \ "type": "SourceFile",
\ "start": { \ "start": {
\ "line": 6, \ "line": 6,
@ -227,7 +227,7 @@ Execute(The flow handler should fetch the correct location for the currently ope
\ "offset": 108 \ "offset": 108
\ } \ }
\ }, \ },
\ "path": expand('%:p:h'), \ "path": expand('%:p'),
\ "line": 6, \ "line": 6,
\ "endline": 6, \ "endline": 6,
\ "start": 3, \ "start": 3,