This pr resolves #18 by adding support for an optional "yesterday" parameter that would come before the time for the /clock in and /clock out commands.
Also included are overdue Apex tests in SlashclockInCommandTest and SlashclockInCommandTest to cover expected functionality of the two augmented commands. These tests exposed a need to set up mocks for the Slack API, which were implemented using a new SmartHttpCalloutMockSuite framework. In this framework, each external API service gets at least its own mock suite (e.g., SlackApiServiceMockSuite), where each nested class inside represents a single response scenario.
This pr resolves #18 by adding support for an optional "yesterday" parameter that would come before the time for the /clock in and /clock out commands.
Also included are overdue Apex tests in
SlashclockInCommandTest
andSlashclockInCommandTest
to cover expected functionality of the two augmented commands. These tests exposed a need to set up mocks for the Slack API, which were implemented using a newSmartHttpCalloutMockSuite
framework. In this framework, each external API service gets at least its own mock suite (e.g.,SlackApiServiceMockSuite
), where each nested class inside represents a single response scenario.