diff --git a/packages/platform-server/README.md b/packages/platform-server/README.md index dc45f934..cc29afc5 100644 --- a/packages/platform-server/README.md +++ b/packages/platform-server/README.md @@ -96,7 +96,7 @@ import { hydrateRoot } from '@dark-engine/platform-browser'; import { App } from './app'; -hydrateRoot(document.getElementById('root'), ); // some magic and app works! +hydrateRoot(document.getElementById('root'), ); ``` ### RenderToStream diff --git a/packages/platform-server/src/render/render.spec.tsx b/packages/platform-server/src/render/render.spec.tsx index ef1d3976..69a3ddf7 100644 --- a/packages/platform-server/src/render/render.spec.tsx +++ b/packages/platform-server/src/render/render.spec.tsx @@ -98,35 +98,6 @@ describe('[SSR]', () => { expect(app).toBe(replacer); }); - test('can render to string async correctly', async () => { - const content = (x: number) => - dom` -
-
Hello World
-
count: ${x}
- -
- `; - - const App = component(() => { - const [count, setCount] = useState(0); - - return ( - <> -
-
Hello World
-
count: {count}
- -
- - ); - }); - - expect(await renderToString(App())).toBe(content(0)); - }); - test('can render to stream correctly', () => { const content = (x: number) => dom`