chore(format): fix format issues in utils.spec.ts

from
374 problems down to 40
This commit is contained in:
Panagiotis Papadopoulos 2025-04-02 22:33:14 +02:00
parent 3f0dbb9063
commit 80ce77cdcf

View File

@ -181,14 +181,14 @@ describe("#getContentDisposition", () => {
[ "test file.csv" ], [ "test file.csv" ],
`file; filename="test%20file.csv"; filename*=UTF-8''test%20file.csv` `file; filename="test%20file.csv"; filename*=UTF-8''test%20file.csv`
] ]
] ];
testCases.forEach(testCase => { testCases.forEach(testCase => {
const [ desc, fnParams, expected ] = testCase; const [ desc, fnParams, expected ] = testCase;
it(desc, () => { it(desc, () => {
const result = utils.getContentDisposition(...fnParams); const result = utils.getContentDisposition(...fnParams);
expect(result).toStrictEqual(expected); 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", "w/ non-string note type (file), but mime type starting with 'text/', it should return true",
[ "file", "text/html" ], [ "file", "text/html" ],
true true
], ]
]; ];
testCases.forEach((testCase) => { testCases.forEach((testCase) => {
@ -515,7 +515,7 @@ describe("#safeExtractMessageAndStackFromError", () => {
expect(actual[0]).toBe("Unknown Error"); expect(actual[0]).toBe("Unknown Error");
expect(actual[1]).toBeUndefined(); expect(actual[1]).toBeUndefined();
}); });
}) });
describe("#formatDownloadTitle", () => { describe("#formatDownloadTitle", () => {
//prettier-ignore //prettier-ignore