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}
-
+
}
diff --git a/test/fixtures/basic/pages/css.js b/test/fixtures/basic/pages/css.js
new file mode 100644
index 00000000..c5b19c0a
--- /dev/null
+++ b/test/fixtures/basic/pages/css.js
@@ -0,0 +1,8 @@
+import React from 'react'
+import { StyleSheet, css } from 'next/css'
+
+export default () => This is red
+
+const styles = StyleSheet.create({
+ red: { color: 'red' }
+})
diff --git a/test/index.js b/test/index.js
index 9220da0b..54183c3c 100644
--- a/test/index.js
+++ b/test/index.js
@@ -9,10 +9,15 @@ test.before(() => build(dir))
test(async (t) => {
const html = await render('/stateless')
- console.log(html)
t.true(html.includes('My component!
'))
})
+test(async (t) => {
+ const html = await render('/css')
+ t.true(html.includes(''))
+ t.true(html.includes('This is red
'))
+})
+
function render (url, ctx) {
return _render(url, ctx, { dir, staticMarkup: true })
}