File tree Expand file tree Collapse file tree 2 files changed +4
-2
lines changed Expand file tree Collapse file tree 2 files changed +4
-2
lines changed Original file line number Diff line number Diff line change 22
33< head >
44 < meta charset ="utf-8 ">
5+ < link rel ="alternate " href ='/5 ' />
56</ head >
67
78< body >
Original file line number Diff line number Diff line change @@ -157,13 +157,14 @@ describe("many pages", () => {
157157 } = mockFs ( ) ;
158158 beforeAll ( ( ) => snapRun ( fs , { source } ) ) ;
159159 test ( "crawls all links and saves as index.html in separate folders" , ( ) => {
160- expect ( filesCreated ( ) ) . toEqual ( 6 ) ;
160+ expect ( filesCreated ( ) ) . toEqual ( 7 ) ;
161161 expect ( names ( ) ) . toEqual (
162162 expect . arrayContaining ( [
163163 `/${ source } /1/index.html` , // without slash in the end
164164 `/${ source } /2/index.html` , // with slash in the end
165165 `/${ source } /3/index.html` , // ignores hash
166- `/${ source } /4/index.html` // ignores query
166+ `/${ source } /4/index.html` , // ignores query
167+ `/${ source } /5/index.html` , // link rel="alternate"
167168 ] )
168169 ) ;
169170 } ) ;
You can’t perform that action at this time.
0 commit comments