From a5f9e3400d726e7a8911433463a84cbfbb8f540d Mon Sep 17 00:00:00 2001 From: y-kurami Date: Sat, 5 Sep 2015 02:21:14 +0900 Subject: [PATCH] Fix test for geterrProject --- vest/tsGeterrForProject.spec.vim | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/vest/tsGeterrForProject.spec.vim b/vest/tsGeterrForProject.spec.vim index 2f159a3..9ed94c7 100644 --- a/vest/tsGeterrForProject.spec.vim +++ b/vest/tsGeterrForProject.spec.vim @@ -8,9 +8,11 @@ Context Vesting.run() It checks interface of responce of 'geterr' command. let file = s:Filepath.join(s:script_dir, 'vest/resources/samplePrjs/errorPrj/main.ts') + let sub_file = s:Filepath.join(s:script_dir, 'vest/resources/samplePrjs/errorPrj/sub.ts') call tsuquyomi#tsClient#tsOpen(file) - let result_dict = tsuquyomi#tsClient#tsGeterrForProject(file, 10) - echo result_dict + let result_list = tsuquyomi#tsClient#tsGeterrForProject(file, 10, 2) + Should len(result_list) == 4 + Should sort(map(copy(result_list), 'v:val.body.file')) == [file, file, sub_file, sub_file] call tsuquyomi#tsClient#stopTss() End End