You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

15 lines
365 B

import test from 'ava';
9 years ago
import React from 'react';
import { shallow } from 'enzyme';
import { Col, Row } from '../components/layout/index';
9 years ago
test('should render Col', (t) => {
const col = shallow(<Col span={2} />);
t.true(col.hasClass('ant-col-2'));
});
test('should render Row', (t) => {
const row = shallow(<Row />);
t.true(row.hasClass('ant-row'));
});