forked from muicss/mui
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathtest-tabs.js
More file actions
45 lines (33 loc) · 1.05 KB
/
test-tabs.js
File metadata and controls
45 lines (33 loc) · 1.05 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
/**
* MUI test react select library
* @module test/react-tests/test-select
*/
import assert from 'assert';
import React from 'react';
import ReactUtils from 'react-addons-test-utils';
import Tab from '../../src/react/tab';
import Tabs from '../../src/react/tabs';
import { getShallowRendererOutput } from '../lib/react-helpers';
describe('react/tabs', function() {
it('renders wrapper properly', function() {
let result = getShallowRendererOutput(<Tabs><Tab /></Tabs>);
assert.equal(result.type, 'div');
assert.equal(result.props.className, '');
});
it('renders properly with additional classNames', function() {
let result = getShallowRendererOutput(
<Tabs className="additional">
<Tab />
</Tabs>
);
assert.equal(result.props.className, 'additional');
});
it('renders properly with additional styles', function() {
let result = getShallowRendererOutput(
<Tabs style={{additonal: 'style'}}>
<Tab />
</Tabs>
);
assert.equal(result.props.style.additonal, 'style');
});
});