Logo: Relish

  1. Sign in

Project: Common-date-api

Gather the previous working date when a specified number of days are added

  • @previous_working_date
Scenarios
Return the next working day for a specified number of days
Given
the initial date details of "2016-05-20"
And
the number of specified days being "-3"
When
the initial date and specified days are passed to the system
Then
the correct working day of "2016-05-17" is returned
Return the next working day for a specified number of days including a weekend
Given
the initial date details of "2016-06-21"
And
the number of specified days being "-2"
When
the initial date and specified days are passed to the system
Then
the correct working day of "2016-06-17" is returned
Return the next working day for a specified number of days including a bank holiday
Given
the initial date details of "2016-08-30"
And
the number of specified days being "-1"
When
the initial date and specified days are passed to the system
Then
the correct working day of "2016-08-26" is returned
And
the correct holidays number of "1" is returned

Last published about 4 years ago by Matthew Thomas.