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 @@ -44,6 +44,13 @@ describe('should set-up next', () => {
4444 }
4545 } )
4646
47+ it ( 'should have correct head tags from a fragment' , async ( ) => {
48+ const html = await renderViaHTTP ( next . url , '/' )
49+ const $ = cheerio . load ( html )
50+
51+ expect ( $ ( `meta[name="test-in-fragment"]` ) . attr ( ) [ 'content' ] ) . toBe ( 'hello' )
52+ } )
53+
4754 it ( 'should have correct head tags after hydration' , async ( ) => {
4855 const browser = await webdriver ( next . url , '/' )
4956
You can’t perform that action at this time.
0 commit comments