fimfic2epub/test/test-kepubify.js

8 lines
299 B
JavaScript
Raw Normal View History

2018-03-27 03:50:39 +13:00
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(kepubify(`<html><body><p>Some text. Woo or not. Here is <img /> another sentence.</p></body></html>`))