From facd19b5a755f35fe2e0d9d2fce66a0219a4d28f Mon Sep 17 00:00:00 2001 From: nkzawa Date: Mon, 10 Oct 2016 13:35:37 +0900 Subject: [PATCH] add a css test --- lib/document.js | 2 +- test/fixtures/basic/pages/css.js | 8 ++++++++ test/index.js | 7 ++++++- 3 files changed, 15 insertions(+), 2 deletions(-) create mode 100644 test/fixtures/basic/pages/css.js diff --git a/lib/document.js b/lib/document.js index c88b7e4d..07827b6e 100644 --- a/lib/document.js +++ b/lib/document.js @@ -30,7 +30,7 @@ export function Head (props, context) { .map((h, i) => React.cloneElement(h, { key: '_next' + i })) return {h} - ')) + t.true(html.includes('
This is red
')) +}) + function render (url, ctx) { return _render(url, ctx, { dir, staticMarkup: true }) }