Skip to content

Commit

Permalink
Fix test for geterrProject
Browse files Browse the repository at this point in the history
  • Loading branch information
Quramy committed Sep 4, 2015
1 parent 01c0096 commit a5f9e34
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions vest/tsGeterrForProject.spec.vim
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit a5f9e34

Please sign in to comment.