You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Obviously it is not the way the lib work for now. Ideally I would have liked to have the following implementation of createReadStream in the mockServiceMethod method:
Hi there,
In my lib I have the following call
I would like to be able to mock to s3.getObject method and to have different stream depending on the key passed in parameter.
The kind of code I would like to write in my unit test is like
Obviously it is not the way the lib work for now. Ideally I would have liked to have the following implementation of
createReadStream
in themockServiceMethod
method:The part I want to add is
if (typeof (replace) === 'function') {this.push(replace(userArgs[0]));}
Does it make sense to you ?
The text was updated successfully, but these errors were encountered: