Skip to content

Commit

Permalink
Fix test.todo() type generation
Browse files Browse the repository at this point in the history
Fixes #1081.
  • Loading branch information
novemberborn committed Jan 20, 2017
1 parent c010fd7 commit 0603edc
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion types/make.js
Original file line number Diff line number Diff line change
Expand Up @@ -55,7 +55,7 @@ function generatePrefixed(prefix) {
// `always` is a valid prefix, for instance of `always.after`,
// but not a valid function name.
if (verify(parts, false)) {
if (prefix.includes(parts, 'todo')) {
if (parts.includes('todo')) {
output += '\t' + writeFunction(part, 'name: string', 'void');
} else {
const type = testType(parts);
Expand Down

0 comments on commit 0603edc

Please sign in to comment.