var tape = require('tape') var h = require('hyperscript') var html = require('./html') var raw = require('./html/raw') var choo = require('./') tape('should render on the server with bel', function (t) { var app = choo() app.route('/', function (state, emit) { var strong = 'Hello filthy planet' return html`

${raw(strong)}

` }) var res = app.toString('/') var exp = '

Hello filthy planet

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

Hello filthy planet

' t.equal(res.toString().trim(), exp, 'result was OK') t.end() })