mirror of
https://github.com/TriliumNext/Notes.git
synced 2025-07-29 11:02:28 +08:00
chore(format): fix auto-fixable format issues in *.spec.ts
This commit is contained in:
parent
2112bbee0a
commit
df5ac3e77d
@ -13,7 +13,7 @@ describe("Share API test", () => {
|
|||||||
initializeTranslations();
|
initializeTranslations();
|
||||||
app = (await import("../app.js")).default;
|
app = (await import("../app.js")).default;
|
||||||
app.use((err: unknown, req: Request, res: Response, next: NextFunction) => {
|
app.use((err: unknown, req: Request, res: Response, next: NextFunction) => {
|
||||||
const [errMessage] = safeExtractMessageAndStackFromError(err)
|
const [ errMessage ] = safeExtractMessageAndStackFromError(err);
|
||||||
if (errMessage.includes("Cannot set headers after they are sent to the client")) {
|
if (errMessage.includes("Cannot set headers after they are sent to the client")) {
|
||||||
cannotSetHeadersCount++;
|
cannotSetHeadersCount++;
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user