File tree Expand file tree Collapse file tree 2 files changed +10
-0
lines changed
Expand file tree Collapse file tree 2 files changed +10
-0
lines changed Original file line number Diff line number Diff line change @@ -6,6 +6,9 @@ export function Meta(props) {
66 < Head >
77 < meta name = "test-head-3" content = "hello" />
88 < meta name = "test-head-4" content = "hello" />
9+ < >
10+ < meta name = "test-in-fragment" content = "hello" />
11+ </ >
912 </ Head >
1013 </ >
1114 )
Original file line number Diff line number Diff line change @@ -27,6 +27,13 @@ describe('should set-up next', () => {
2727 }
2828 } )
2929
30+ it ( 'should have correct head tags from a fragment' , async ( ) => {
31+ const html = await renderViaHTTP ( next . url , '/' )
32+ const $ = cheerio . load ( html )
33+
34+ expect ( $ ( `meta[name="test-in-fragment"]` ) . attr ( ) [ 'content' ] ) . toBe ( 'hello' )
35+ } )
36+
3037 it ( 'should have correct head tags after hydration' , async ( ) => {
3138 const browser = await webdriver ( next . url , '/' )
3239
You can’t perform that action at this time.
0 commit comments