-
-
Notifications
You must be signed in to change notification settings - Fork 99
Expand file tree
/
Copy pathindex.js
More file actions
30 lines (26 loc) · 794 Bytes
/
index.js
File metadata and controls
30 lines (26 loc) · 794 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
import {
render,
shallowRender,
renderToStaticMarkup,
renderToString
} from '../src';
import { expect } from 'chai';
describe('render-to-string', () => {
describe('exports', () => {
it('exposes render as a named export', () => {
expect(render).to.be.a('function');
expect(render).to.equal(renderToString);
});
it('exposes renderToString as a named export', () => {
expect(renderToString).to.be.a('function');
expect(renderToString).to.equal(renderToString);
});
it('exposes renderToStaticMarkup as a named export', () => {
expect(renderToStaticMarkup).to.be.a('function');
expect(renderToStaticMarkup).to.equal(renderToStaticMarkup);
});
it('exposes shallowRender as a named export', () => {
expect(shallowRender).to.be.a('function');
});
});
});