This PR adds error handling to the datastore.put call, returning an error if this call is unsuccessful. Related tests are also added.
Unsure if this is the ideal way to mock different responses or if this is how we'd like to handle this error case, so please feel free to suggest alternatives!
Type of change
Summary
This PR adds error handling to the
datastore.put
call, returning an error if this call is unsuccessful. Related tests are also added.Unsure if this is the ideal way to mock different responses or if this is how we'd like to handle this error case, so please feel free to suggest alternatives!
Notes
Mocked responses were updated to match https://api.slack.com/methods/apps.datastore.put#examples
Requirements