/* global expect, jasmine, describe, test, beforeAll */ 'use strict' import build from '../server/build' import { join } from 'path' import { render as _render } from '../server/render' const dir = join(__dirname, 'fixtures', 'basic') jasmine.DEFAULT_TIMEOUT_INTERVAL = 10000 describe('integration tests', () => { beforeAll(() => build(dir)) test('renders a stateless component', async () => { const html = await render('/stateless') expect(html.includes('')).toBeTruthy() expect(html.includes('
The answer is 42
Diego Milito
')).toBeTruthy() }) test('renders a link component', async () => { const html = await render('/link') expect(html.includes('About')).toBeTruthy() }) }) function render (url, ctx) { return _render(url, ctx, { dir, staticMarkup: true }) }