Skip to content

Commit 309ab56

Browse files
committed
Add tooltip test
1 parent cd726b0 commit 309ab56

File tree

1 file changed

+22
-0
lines changed

1 file changed

+22
-0
lines changed

tests/SLDSTooltip/tooltip.test.jsx

Lines changed: 22 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,22 @@
1+
const React = require('react/addons');
2+
const TestUtils = React.addons.TestUtils;
3+
import {SLDSTooltip} from '../../components';
4+
5+
describe('SLDSTooltip: ', function(){
6+
7+
const generateTooltip = function(tooltipInstance) {
8+
let reactCmp = TestUtils.renderIntoDocument(tooltipInstance);
9+
return React.findDOMNode(reactCmp);
10+
};
11+
12+
describe('component renders', function() {
13+
it('tooltip renders', function() {
14+
let tooltip = generateTooltip(<SLDSTooltip />);
15+
expect(tooltip).to.not.equal(undefined);
16+
});
17+
});
18+
19+
describe('component basic props render', function() {
20+
});
21+
22+
});

0 commit comments

Comments
 (0)