File tree Expand file tree Collapse file tree 2 files changed +2
-2
lines changed Expand file tree Collapse file tree 2 files changed +2
-2
lines changed Original file line number Diff line number Diff line change @@ -11,7 +11,7 @@ export default class File extends Blob {
11
11
*/ // @ts -ignore
12
12
constructor ( fileBits , fileName , options = { } ) {
13
13
if ( arguments . length < 2 ) {
14
- throw new TypeError ( `Failed to construct 'File': 2 arguments required.` ) ;
14
+ throw new TypeError ( `Failed to construct 'File': 2 arguments required, but only ${ arguments . length } present .` ) ;
15
15
}
16
16
super ( fileBits , options ) ;
17
17
Original file line number Diff line number Diff line change @@ -319,6 +319,6 @@ test('blobFrom(path) sets empty type', async t => {
319
319
test ( 'new File() throws with too few args' , t => {
320
320
t . throws ( ( ) => new File ( ) , {
321
321
instanceOf : TypeError ,
322
- message : 'Failed to construct \'File\': 2 arguments required.'
322
+ message : 'Failed to construct \'File\': 2 arguments required, but only 0 present .'
323
323
} ) ;
324
324
} ) ;
You can’t perform that action at this time.
0 commit comments