Skip to content

Commit 99834fe

Browse files
committed
Add test for renderToStaticMarkup
1 parent 0882c7e commit 99834fe

File tree

1 file changed

+6
-1
lines changed

1 file changed

+6
-1
lines changed

test/index.js

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
import renderToString, { render, shallowRender, renderToString as _renderToString } from '../src';
1+
import renderToString, { render, shallowRender, renderToStaticMarkup, renderToString as _renderToString } from '../src';
22
import { expect } from 'chai';
33

44
describe('render-to-string', () => {
@@ -17,6 +17,11 @@ describe('render-to-string', () => {
1717
expect(_renderToString).to.equal(renderToString);
1818
});
1919

20+
it('exposes renderToStaticMarkup as a named export', () => {
21+
expect(renderToStaticMarkup).to.be.a('function');
22+
expect(renderToStaticMarkup).to.equal(renderToStaticMarkup);
23+
});
24+
2025
it('exposes shallowRender as a named export', () => {
2126
expect(shallowRender).to.be.a('function');
2227
});

0 commit comments

Comments
 (0)