mirror of
https://github.com/TriliumNext/Notes.git
synced 2025-09-30 00:51:30 +08:00
chore(format): fix format issues in utils.spec.ts
from 374 problems down to 40
This commit is contained in:
parent
3f0dbb9063
commit
80ce77cdcf
@ -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
|
||||
|
Loading…
x
Reference in New Issue
Block a user