Get rid of unnecessary data in pop date range

This commit is contained in:
leigh-mil
2019-09-25 16:07:31 -04:00
parent c03820e53a
commit df5f4b9d3e
2 changed files with 10 additions and 18 deletions

View File

@@ -14,13 +14,13 @@ describe('PopDateRange Test', () => {
const component = new Vue(PopDateRange)
it('should calculate the max start date', () => {
component.contractEnd = new Date('2020-01-01')
component.maxStartDate = new Date('2020-01-01')
const date = new Date('2019-12-31')
expect(component.calcMaxStartDate(date)).toEqual(date)
})
it('should calculate the min end date', () => {
component.contractStart = new Date('2020-01-01')
component.minEndDate = new Date('2020-01-01')
const date = new Date('2020-02-02')
expect(component.calcMinEndDate(date)).toEqual(date)
})