diff --git a/src/__tests__/data/ConstExport.tsx b/src/__tests__/data/ConstExport.tsx index 91d69695..a99c98fa 100644 --- a/src/__tests__/data/ConstExport.tsx +++ b/src/__tests__/data/ConstExport.tsx @@ -45,4 +45,4 @@ const nonExportedFunc = (props: IRowProps) => { return
No Export
}; -export default Row; \ No newline at end of file +export default Row; diff --git a/src/__tests__/parser.spec.ts b/src/__tests__/parser.spec.ts index a5392001..7aa146b8 100644 --- a/src/__tests__/parser.spec.ts +++ b/src/__tests__/parser.spec.ts @@ -88,6 +88,7 @@ describe('parser', () => { it('Should parse class-based pure components', () => { const fileName = path.join(__dirname, '../../src/__tests__/data/PureRow.tsx'); // it's running in ./temp const result = getDocumentation(fileName); + assert.ok(result.classes); assert.ok(result.interfaces); assert.equal(1, result.classes.length); @@ -153,4 +154,4 @@ describe('parser', () => { assert.equal(true, i.members[3].isRequired); }); -}); \ No newline at end of file +});