-
Notifications
You must be signed in to change notification settings - Fork 265
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Adding react-dom as a peer dependency
- Loading branch information
Showing
5 changed files
with
63 additions
and
3 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
24 changes: 24 additions & 0 deletions
24
packages/email-builder/src/renderers/renderToStaticMarkup.spec.tsx
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,24 @@ | ||
/** | ||
* @jest-environment node | ||
*/ | ||
|
||
import renderToStaticMarkup from './renderToStaticMarkup'; | ||
|
||
describe('renderToStaticMarkup', () => { | ||
it.only('renders into a string', () => { | ||
const result = renderToStaticMarkup( | ||
{ | ||
root: { | ||
type: 'Container', | ||
data: { | ||
props: { | ||
childrenIds: [], | ||
}, | ||
}, | ||
}, | ||
}, | ||
{ rootBlockId: 'root' } | ||
); | ||
expect(result).toEqual('<!DOCTYPE html><html><body><div></div></body></html>'); | ||
}); | ||
}); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters