mirror of
https://github.com/wassname/talk.git
synced 2026-06-30 21:30:10 +08:00
12 lines
332 B
JavaScript
12 lines
332 B
JavaScript
import React from 'react';
|
|
import {shallow} from 'enzyme';
|
|
import {expect} from 'chai';
|
|
import CommentContent from '../CommentContent';
|
|
|
|
describe('CommentContent', () => {
|
|
it('should render content', () => {
|
|
const render = shallow(<CommentContent content="test"/>);
|
|
expect(render.contains('test')).to.be.truthy;
|
|
});
|
|
});
|