diff options
author | Adam Wudzinski <adam.wudzinski@nokia.com> | 2019-04-11 13:58:51 +0200 |
---|---|---|
committer | awudzins <adam.wudzinski@nokia.com> | 2019-04-11 13:58:51 +0200 |
commit | 962b0410413800b18ced9e8adba1fa393292d4ad (patch) | |
tree | 44780f7446c95d147fbeca2d7005f4d305789f03 /test/generic-components/paginatedTable | |
parent | 6a47c2493c21c09df35df1f9f03474f8c2f8874a (diff) |
Shallow render generic components
Add tests that check if generic components render
Change-Id: I32960dfa1519a13483b6a4ec9e2eebe48c03cdbc
Issue-ID: AAI-1618
Signed-off-by: awudzins <adam.wudzinski@nokia.com>
Diffstat (limited to 'test/generic-components/paginatedTable')
-rw-r--r-- | test/generic-components/paginatedTable/PaginatedTable.test.js | 11 |
1 files changed, 11 insertions, 0 deletions
diff --git a/test/generic-components/paginatedTable/PaginatedTable.test.js b/test/generic-components/paginatedTable/PaginatedTable.test.js new file mode 100644 index 0000000..d3a32b5 --- /dev/null +++ b/test/generic-components/paginatedTable/PaginatedTable.test.js @@ -0,0 +1,11 @@ +import React from 'react'; +import PaginatedTable from 'generic-components/paginatedTable/PaginatedTable.jsx'; +import {shallow} from 'enzyme'; + +describe('PaginatedTable component', () => { + it('should be rendered', () => { + const component = shallow(<PaginatedTable tableHeaders={{}}/>); + + expect(component).toHaveLength(1); + }); +}); |