Skip to content

Commit

Permalink
Add testcase for rules/named-export: ExportNamedDeclaration in TSModu…
Browse files Browse the repository at this point in the history
…leBlock
  • Loading branch information
epaew committed Nov 22, 2020
1 parent 8b41a85 commit e4628e1
Showing 1 changed file with 13 additions and 0 deletions.
13 changes: 13 additions & 0 deletions __tests__/rules/named-export.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -353,6 +353,19 @@ describe('rules/named-export', () => {
},
],
});

ruleTester.run('single named export in module declaration', namedExport, {
valid: [
{
code: `
declare module 'espree' {
export function parse(code: string, options?: any): Node;
}
`,
filename: 'espree.d.ts',
},
],
});
});
});
});

0 comments on commit e4628e1

Please sign in to comment.