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.
20 lines
522 B
20 lines
522 B
7 years ago
|
import renderToString, { render, shallowRender } from '../src';
|
||
|
import { expect } from 'chai';
|
||
|
|
||
|
describe('render-to-string', () => {
|
||
|
describe('exports', () => {
|
||
|
it('exposes renderToString as default', () => {
|
||
|
expect(renderToString).to.be.a('function');
|
||
|
});
|
||
|
|
||
|
it('exposes render as a named export', () => {
|
||
|
expect(render).to.be.a('function');
|
||
|
expect(render).to.equal(renderToString);
|
||
|
});
|
||
|
|
||
|
it('exposes shallowRender as a named export', () => {
|
||
|
expect(shallowRender).to.be.a('function');
|
||
|
});
|
||
|
});
|
||
|
});
|