Skip to content

Commit 58f0cca

Browse files
Merge pull request #157 from preactjs/feature/render-to-static-markup
2 parents ec60f9f + 99834fe commit 58f0cca

File tree

2 files changed

+7
-1
lines changed

2 files changed

+7
-1
lines changed

src/index.js

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -325,6 +325,7 @@ export default renderToString;
325325

326326
export {
327327
renderToString as render,
328+
renderToString as renderToStaticMarkup,
328329
renderToString,
329330
shallowRender
330331
};

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)