[ci] format
This commit is contained in:
parent
ccd72e6bb4
commit
3b1871a726
3 changed files with 5 additions and 6 deletions
|
@ -332,7 +332,7 @@ export function createRouteManifest(
|
||||||
component,
|
component,
|
||||||
generate,
|
generate,
|
||||||
pathname: pathname || undefined,
|
pathname: pathname || undefined,
|
||||||
prerender: false
|
prerender: false,
|
||||||
});
|
});
|
||||||
}
|
}
|
||||||
});
|
});
|
||||||
|
@ -408,7 +408,7 @@ export function createRouteManifest(
|
||||||
component,
|
component,
|
||||||
generate,
|
generate,
|
||||||
pathname: pathname || void 0,
|
pathname: pathname || void 0,
|
||||||
prerender: false
|
prerender: false,
|
||||||
});
|
});
|
||||||
});
|
});
|
||||||
|
|
||||||
|
|
|
@ -24,6 +24,6 @@ export function deserializeRouteData(rawRouteData: SerializedRouteData): RouteDa
|
||||||
generate: getRouteGenerator(rawRouteData.segments, rawRouteData._meta.trailingSlash),
|
generate: getRouteGenerator(rawRouteData.segments, rawRouteData._meta.trailingSlash),
|
||||||
pathname: rawRouteData.pathname || undefined,
|
pathname: rawRouteData.pathname || undefined,
|
||||||
segments: rawRouteData.segments,
|
segments: rawRouteData.segments,
|
||||||
prerender: rawRouteData.prerender
|
prerender: rawRouteData.prerender,
|
||||||
};
|
};
|
||||||
}
|
}
|
||||||
|
|
|
@ -59,8 +59,7 @@ describe('SSR: prerender', () => {
|
||||||
expect(response.status).to.equal(200);
|
expect(response.status).to.equal(200);
|
||||||
const html = await response.text();
|
const html = await response.text();
|
||||||
const $ = cheerio.load(html);
|
const $ = cheerio.load(html);
|
||||||
expect($('p').text()).to.include('not give 404')
|
expect($('p').text()).to.include('not give 404');
|
||||||
|
|
||||||
});
|
});
|
||||||
})
|
});
|
||||||
});
|
});
|
||||||
|
|
Loading…
Reference in a new issue