require('babel-register') // use a mock DOM so we can run mithril on the server require('mithril/test-utils/browserMock')(global) const kepubify = require('../src/kepubify').default console.log(1, kepubify(` text

aaaa

Some text. Woo not. Here is another sentence.

More text tail

body tail html tail`) === `\n\ntext

aaaa

Some text. Woo not. Here is another sentence.

More text tail

body tail
`) console.log(2, kepubify(`

Dated: June 5th. Wohoo

`) === `

Dated: June 5th. Wohoo

`)