var tape = require('tape') var html = require('./html') var choo = require('./') tape('should render on the server', function (t) { var app = choo() app.route('/', function (state, emit) { return html`
Hello filthy planet
` }) var res = app.toString('/') var exp = 'Hello filthy planet
' t.equal(res.toString().trim(), exp, 'result was OK') t.end() })