Get the TSLint handler tests to pass on Windows

This commit is contained in:
w0rp 2017-09-10 00:05:36 +01:00
parent 18f4d5a6da
commit 1a52a2b880

View File

@ -24,7 +24,7 @@ Execute(The tslint handler should parse lines correctly):
\ { \ {
\ 'lnum': 1, \ 'lnum': 1,
\ 'col': 15, \ 'col': 15,
\ 'filename': expand('%:p:h') . '/test.ts', \ 'filename': ale#path#Winify(expand('%:p:h') . '/test.ts'),
\ 'end_lnum': 1, \ 'end_lnum': 1,
\ 'type': 'E', \ 'type': 'E',
\ 'end_col': 15, \ 'end_col': 15,
@ -33,7 +33,7 @@ Execute(The tslint handler should parse lines correctly):
\ { \ {
\ 'lnum': 2, \ 'lnum': 2,
\ 'col': 8, \ 'col': 8,
\ 'filename': expand('%:p:h') . '/test.ts', \ 'filename': ale#path#Winify(expand('%:p:h') . '/test.ts'),
\ 'end_lnum': 3, \ 'end_lnum': 3,
\ 'type': 'W', \ 'type': 'W',
\ 'end_col': 12, \ 'end_col': 12,
@ -42,7 +42,7 @@ Execute(The tslint handler should parse lines correctly):
\ { \ {
\ 'lnum': 2, \ 'lnum': 2,
\ 'col': 8, \ 'col': 8,
\ 'filename': expand('%:p:h') . '/something-else.ts', \ 'filename': ale#path#Winify(expand('%:p:h') . '/something-else.ts'),
\ 'end_lnum': 3, \ 'end_lnum': 3,
\ 'type': 'W', \ 'type': 'W',
\ 'end_col': 12, \ 'end_col': 12,
@ -51,7 +51,7 @@ Execute(The tslint handler should parse lines correctly):
\ { \ {
\ 'lnum': 31, \ 'lnum': 31,
\ 'col': 9, \ 'col': 9,
\ 'filename': expand('%:p:h') . '/test.ts', \ 'filename': ale#path#Winify(expand('%:p:h') . '/test.ts'),
\ 'end_lnum': 31, \ 'end_lnum': 31,
\ 'type': 'E', \ 'type': 'E',
\ 'end_col': 20, \ 'end_col': 20,
@ -151,7 +151,7 @@ Execute(The tslint handler report errors for empty files by default):
\ { \ {
\ 'lnum': 2, \ 'lnum': 2,
\ 'col': 1, \ 'col': 1,
\ 'filename': expand('%:p:h') . '/test.ts', \ 'filename': ale#path#Winify(expand('%:p:h') . '/test.ts'),
\ 'end_lnum': 2, \ 'end_lnum': 2,
\ 'type': 'E', \ 'type': 'E',
\ 'end_col': 1, \ 'end_col': 1,
@ -224,7 +224,7 @@ Execute(The tslint handler should report errors when the ignore option is on, bu
\ { \ {
\ 'lnum': 2, \ 'lnum': 2,
\ 'col': 1, \ 'col': 1,
\ 'filename': expand('%:p:h') . '/test.ts', \ 'filename': ale#path#Winify(expand('%:p:h') . '/test.ts'),
\ 'end_lnum': 2, \ 'end_lnum': 2,
\ 'type': 'E', \ 'type': 'E',
\ 'end_col': 1, \ 'end_col': 1,