Coffee Shop Message
Like all good cafes they open early, and sometimes close early - particularly when they've sold out of salads, or it's a quiet afternoon. So the Flic sits on their wall, and when they're about to close they tap it... a few doors down our office gets a Slack message and we know to come get our last coffees of the day!
To install locally:
As input is required to run the function, the easiest way to see it in action is to run the integration tests documented below.
To run all tests at once:
$ yarn test
$ yarn unit-tests
Note that unit tests are yet to be written, and will currently just pass!!
$ yarn docker-tests
The following environment variables must be defined on your system:
CI variable above is optional, but recommended. If set (which it is by default on Travis CI, for instance), it will cause errors to be thrown rather than returned as an API Gateway style response. If not set, tests will still 'pass', as errors will be mapped to a HTTP status code rather than thrown.