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