@@ -167,12 +167,12 @@ describe("#getContentDisposition", () => {
167167 const defaultFallBackDisposition = `file; filename="file"; filename*=UTF-8''file` ;
168168 const testCases : TestCase < typeof utils . getContentDisposition > [ ] = [
169169 [
170- "when passed filename is empty, it should fallback to default value 'file'" ,
170+ "when passed filename is empty, it should fallback to default value 'file'" ,
171171 [ " " ] ,
172172 defaultFallBackDisposition
173173 ] ,
174174 [
175- "when passed filename '..' would cause sanitized filename to be empty, it should fallback to default value 'file'" ,
175+ "when passed filename '..' would cause sanitized filename to be empty, it should fallback to default value 'file'" ,
176176 [ ".." ] ,
177177 defaultFallBackDisposition
178178 ] ,
@@ -304,19 +304,16 @@ describe("#getNoteTitle", () => {
304304 ] ,
305305 [
306306 "when a noteMeta object is passed, it should use the title from the noteMeta, if present" ,
307- //@ts -expect-error - passing in incomplete noteMeta - but we only care about the title prop here
308307 [ "test_file.md" , true , { title : "some other title" } ] ,
309308 "some other title"
310309 ] ,
311310 [
312311 "when a noteMeta object is passed, but the title prop is empty, it should try to handle the filename as if no noteMeta was passed" ,
313- //@ts -expect-error - passing in incomplete noteMeta - but we only care about the title prop here
314312 [ "test_file.md" , true , { title : "" } ] ,
315313 "test file"
316314 ] ,
317315 [
318316 "when a noteMeta object is passed, but the title prop is empty, it should try to handle the filename as if no noteMeta was passed" ,
319- //@ts -expect-error - passing in incomplete noteMeta - but we only care about the title prop here
320317 [ "test_file.json" , false , { title : " " } ] ,
321318 "test_file.json"
322319 ]
@@ -627,4 +624,4 @@ describe("#formatDownloadTitle", () => {
627624 expect ( actual ) . toStrictEqual ( expected ) ;
628625 } ) ;
629626 } ) ;
630- } ) ;
627+ } ) ;
0 commit comments