Skip to content

Commit

Permalink
Added tests to cover remaining branch in my code
Browse files Browse the repository at this point in the history
  • Loading branch information
Svish committed May 22, 2019
1 parent ca30d65 commit 7807778
Showing 1 changed file with 21 additions and 0 deletions.
Expand Up @@ -238,6 +238,13 @@ function FunctionDeclaration() {
`,
options: [{ allowCurrying: true }],
},
{
filename: 'test.ts',
code: `
() => () => { return (): void => { return; } };
`,
options: [{ allowCurrying: true }],
},
],
invalid: [
{
Expand Down Expand Up @@ -529,5 +536,19 @@ function FunctionDeclaration() {
},
],
},
{
filename: 'test.ts',
code: `
() => () => { return () => { return; } };
`,
options: [{ allowCurrying: true }],
errors: [
{
messageId: 'missingReturnType',
line: 2,
column: 22,
},
],
},
],
});

0 comments on commit 7807778

Please sign in to comment.