mock-aws-sdk-js icon indicating copy to clipboard operation
mock-aws-sdk-js copied to clipboard

added extra argument to stub method

Open andersgjetting opened this issue 8 years ago • 1 comments

added extra argument to stub method as some AWS sdk methods take more than 2 arguments e.g waitFor(state, params = {}, callback)

andersgjetting avatar Dec 27 '17 13:12 andersgjetting

Thanks for this contribution! Could you please add a test that confirms that the functionality works as intended? As an example, you could build a test similar to this one, but stub waitFor and use 3 args:

https://github.com/mapbox/mock-aws-sdk-js/blob/041b5d50e2acdaded9586ad2534b7bc25a640d94/test/index.test.js#L31-L49

rclark avatar Jan 02 '18 17:01 rclark