File tree Expand file tree Collapse file tree 2 files changed +6
-5
lines changed Expand file tree Collapse file tree 2 files changed +6
-5
lines changed Original file line number Diff line number Diff line change @@ -79,7 +79,7 @@ describe('VFS', () => {
79
79
. toBeInstanceOf ( ArrayBuffer ) ;
80
80
} ) ;
81
81
82
- test ( 'writefile - blob' , ( ) => {
82
+ test ( '# writefile - blob' , ( ) => {
83
83
return expect ( call ( 'writefile' , 'null:/filename' , new Blob ( ) ) )
84
84
. resolves
85
85
. toBe ( - 1 ) ;
Original file line number Diff line number Diff line change @@ -75,10 +75,11 @@ const handleDirectoryList = (path, options) => result =>
75
75
} ) ) ;
76
76
77
77
// Returns a new "options" object without properties from "ignore"
78
- const filterOptions = ( ignore , options ) => {
79
- ignore . forEach ( item => delete options [ item ] ) ;
80
- return options ;
81
- } ;
78
+ const filterOptions = ( ignore , options ) => Object . fromEntries (
79
+ Object
80
+ . entries ( options )
81
+ . filter ( ( [ k ] ) => ! ignore . includes ( k ) )
82
+ ) ;
82
83
83
84
/**
84
85
* Read a directory
You can’t perform that action at this time.
0 commit comments