mirror of
https://github.com/TriliumNext/Notes.git
synced 2025-07-29 02:52:27 +08:00
chore(format): fix auto-fixable format issues in *.spec.ts
This commit is contained in:
parent
2112bbee0a
commit
df5ac3e77d
@ -7,7 +7,7 @@ describe("In-app help", () => {
|
|||||||
const meta: NoteMeta = {
|
const meta: NoteMeta = {
|
||||||
isClone: false,
|
isClone: false,
|
||||||
noteId: "yoAe4jV2yzbd",
|
noteId: "yoAe4jV2yzbd",
|
||||||
notePath: ["OkOZllzB3fqN", "yoAe4jV2yzbd"],
|
notePath: [ "OkOZllzB3fqN", "yoAe4jV2yzbd" ],
|
||||||
title: "Features",
|
title: "Features",
|
||||||
notePosition: 40,
|
notePosition: 40,
|
||||||
prefix: null,
|
prefix: null,
|
||||||
@ -38,7 +38,7 @@ describe("In-app help", () => {
|
|||||||
const meta: NoteMeta = {
|
const meta: NoteMeta = {
|
||||||
isClone: false,
|
isClone: false,
|
||||||
noteId: "yoAe4jV2yzbd",
|
noteId: "yoAe4jV2yzbd",
|
||||||
notePath: ["OkOZllzB3fqN", "yoAe4jV2yzbd"],
|
notePath: [ "OkOZllzB3fqN", "yoAe4jV2yzbd" ],
|
||||||
title: "Features",
|
title: "Features",
|
||||||
notePosition: 40,
|
notePosition: 40,
|
||||||
prefix: null,
|
prefix: null,
|
||||||
|
@ -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