Skip to content

Commit

Permalink
feat: Fix broken tests by reset the option g:doge_comment_todo_suffix…
Browse files Browse the repository at this point in the history
… after it has been used
  • Loading branch information
kkoomen committed Jun 18, 2019
1 parent 5c6c290 commit 21c603e
Showing 1 changed file with 2 additions and 6 deletions.
8 changes: 2 additions & 6 deletions test/options/doge_comment_todo_suffix.vader
Original file line number Diff line number Diff line change
Expand Up @@ -4,9 +4,6 @@
Given php (function with parameters where g:doge_comment_todo_suffix = 1):
public function myPublicMethod(array &$arg1, \Test\Namespacing\With\A\ClassInterface $arg2, int $arg3, $arg4, $arg5 = NULL) {}

Before (set g:doge_comment_todo_suffix = 1):
let g:doge_comment_todo_suffix = 1

Do (trigger doge):
\<C-d>

Expand All @@ -27,11 +24,10 @@ Expect php (generated comment with @param tags and with a TODO suffix for each p
Given php (function with parameters where g:doge_comment_todo_suffix = 0):
public function myPublicMethod(array &$arg1, \Test\Namespacing\With\A\ClassInterface $arg2, int $arg3, $arg4, $arg5 = NULL) {}

Before (set g:doge_comment_todo_suffix = 0):
let g:doge_comment_todo_suffix = 0

Do (trigger doge):
:let g:doge_comment_todo_suffix = 0\<CR>
\<C-d>
:let g:doge_comment_todo_suffix = 1\<CR>

Expect php (generated comment with @param tags and without a TODO suffix for each parameter):
/**
Expand Down

0 comments on commit 21c603e

Please sign in to comment.