mirror of
https://github.com/zadam/trilium.git
synced 2025-10-20 23:29:02 +02:00
Merge pull request #1602 from TriliumNext/chore_format_tests
chore(format): format .spec files
This commit is contained in:
commit
39d466caf8
@ -181,14 +181,14 @@ describe("#getContentDisposition", () => {
|
||||
[ "test file.csv" ],
|
||||
`file; filename="test%20file.csv"; filename*=UTF-8''test%20file.csv`
|
||||
]
|
||||
]
|
||||
];
|
||||
|
||||
testCases.forEach(testCase => {
|
||||
const [ desc, fnParams, expected ] = testCase;
|
||||
it(desc, () => {
|
||||
const result = utils.getContentDisposition(...fnParams);
|
||||
expect(result).toStrictEqual(expected);
|
||||
})
|
||||
});
|
||||
});
|
||||
});
|
||||
|
||||
@ -224,7 +224,7 @@ describe("#isStringNote", () => {
|
||||
"w/ non-string note type (file), but mime type starting with 'text/', it should return true",
|
||||
[ "file", "text/html" ],
|
||||
true
|
||||
],
|
||||
]
|
||||
];
|
||||
|
||||
testCases.forEach((testCase) => {
|
||||
@ -515,7 +515,7 @@ describe("#safeExtractMessageAndStackFromError", () => {
|
||||
expect(actual[0]).toBe("Unknown Error");
|
||||
expect(actual[1]).toBeUndefined();
|
||||
});
|
||||
})
|
||||
});
|
||||
|
||||
describe("#formatDownloadTitle", () => {
|
||||
//prettier-ignore
|
||||
|
@ -13,7 +13,7 @@ describe("Share API test", () => {
|
||||
initializeTranslations();
|
||||
app = (await import("../app.js")).default;
|
||||
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")) {
|
||||
cannotSetHeadersCount++;
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user