Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add unit tests for Slack integration #54

Merged
merged 7 commits into from
Nov 4, 2020
Merged

Conversation

greenberga
Copy link
Collaborator

No description provided.

@nuyawktuah nuyawktuah self-requested a review November 3, 2020 03:41
Copy link
Contributor

@nuyawktuah nuyawktuah left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Looks great!

This should ensure that all anyone who runs the tests uses the same
TZ, which will prevent test flakiness due to system time zone
collision.
@greenberga greenberga merged commit 710fb1c into feat/changes Nov 4, 2020
@greenberga greenberga deleted the unit-tests branch November 4, 2020 05:28
nuyawktuah added a commit that referenced this pull request Dec 20, 2020
* WIP

* WIP

* Formatter

* Reorder

* WIP

* WIP

* WIP

* Add apartment and slack_ts

* Add slack api, upgrade pg

* Fix cert issue

* Update dependencies

* Better messages

* Log id

* Formatter

* Add success_url and failure_url

* Allow unauthorized

* Update acuity webhook

* Return devices object

* Ignore intersections with start or end building

* Use slack api

* Update nodes kml

* Add apartment, formatting

* Fix devices

* Add unit tests for Slack integration (#54)

* Add dependency on Jest for unit testing

* Add unit tests for Slack integration

* Use dependency injection for Slack client

This will make it easier to test the Slack integration without having to
resort to Jest's module-mocking.

* Remove unnecessary exports from Slack module

* Simplify unit-testing strategy for Slack module

* Finish unit tests for Slack module

* Run tests in UTC time zone

This should ensure that all anyone who runs the tests uses the same
TZ, which will prevent test flakiness due to system time zone
collision.

* A bunch of changes

Co-authored-by: olivermesh <oliver@meshcenter.org>
Co-authored-by: greenberga <38597857+greenberga@users.noreply.github.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants