Skip to content

Commit

Permalink
Add test for use a unicode content
Browse files Browse the repository at this point in the history
  • Loading branch information
snics committed May 23, 2018
1 parent a694fd1 commit f4d0038
Showing 1 changed file with 14 additions and 0 deletions.
14 changes: 14 additions & 0 deletions lib/__tests__/render.test.js
Expand Up @@ -97,6 +97,20 @@ describe('render', () => {
).resolves.toEqual('Click Me');
});

it('should render with emoji', () => {
const engine = new Engine();
const input = '<h1>Hallo 👋</h1>';

const _render = engine.render(input);

return expect(
_render.then(html => {
const $ = cheerio.load(html, { xmlMode: true });
return $('h1').text();
})
).resolves.toEqual('Hallo 👋');
});

it('should render with default', () => {
function Engine() {
this.layouts = {};
Expand Down

0 comments on commit f4d0038

Please sign in to comment.