More of a question than a feature request or issue..
Trying to write a local test with mocha and jsdom using the wrapper .addFiles() functionality, but can't seem to get a combination to pass into addFiles() that will take without error.
I originally tried to use file-api with it's FileList and File objects but it seems to be in some conflict.
Then I attempted to manually create a BlobWrapper, placed within an array, and pass that in, but I get an internal error of TypeError: fileInput.setAttribute is not a function.
More of a question than a feature request or issue..
Trying to write a local test with mocha and jsdom using the wrapper .addFiles() functionality, but can't seem to get a combination to pass into addFiles() that will take without error.
I originally tried to use file-api with it's FileList and File objects but it seems to be in some conflict.
Then I attempted to manually create a BlobWrapper, placed within an array, and pass that in, but I get an internal error of
TypeError: fileInput.setAttribute is not a function
.It was a primitive attempt like so..
but clearly I'm on the wrong path.
What would be the easiest way to create a test within node.js and not within a browser?
Thanks.