UNPKG

nwb

Version:

A toolkit for React, Preact & Inferno apps, React libraries and other npm modules for the web, with no configuration (until you need it)

21 lines (16 loc) 382 B
import expect from 'expect' describe('App template', () => { let app before(() => { app = document.createElement('div') app.id = 'app' document.body.appendChild(app) }) after(() => { document.body.removeChild(app) }) it('displays a welcome message', () => { require('src/index') expect(app.innerHTML).toContain('Welcome to {{name}}') }) })