mirror of
https://github.com/wassname/talk.git
synced 2026-07-02 16:49:03 +08:00
12 lines
331 B
JavaScript
12 lines
331 B
JavaScript
import React from 'react'
|
|
import {shallow, mount} 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
|
|
})
|
|
})
|