ant-design/tests/layout.test.js

15 lines
365 B
JavaScript
Raw Normal View History

import test from 'ava';
2016-04-13 20:56:50 +08:00
import React from 'react';
import { shallow } from 'enzyme';
import { Col, Row } from '../components/layout/index';
2016-04-13 20:56:50 +08:00
test('should render Col', (t) => {
const col = shallow(<Col span={2} />);
t.true(col.hasClass('ant-col-2'));
});
2016-02-03 21:53:36 +08:00
test('should render Row', (t) => {
const row = shallow(<Row />);
t.true(row.hasClass('ant-row'));
2016-02-03 21:53:36 +08:00
});