Add tests for pop date range vue component

This commit is contained in:
leigh-mil
2019-09-25 10:43:43 -04:00
parent 5e1ce65662
commit 789e6662a2
7 changed files with 357 additions and 10 deletions

View File

@@ -217,7 +217,7 @@ describe('DateSelector', () => {
describe('minError', () => {
it('returns true if the date is before mindate', () => {
component.mindate = new Date("2020-01-01")
component.mindate = new Date('2020-01-01')
component.day = 1
component.month = 1
component.year = 2000
@@ -225,7 +225,7 @@ describe('DateSelector', () => {
})
it('returns fals if the date is after mindate', () => {
component.mindate = new Date("2020-01-01")
component.mindate = new Date('2020-01-01')
component.day = 1
component.month = 1
component.year = 2025
@@ -235,7 +235,7 @@ describe('DateSelector', () => {
describe('maxError', () => {
it('returns true if the date is after maxdate', () => {
component.maxdate = new Date("2020-01-01")
component.maxdate = new Date('2020-01-01')
component.day = 1
component.month = 1
component.year = 2025
@@ -243,7 +243,7 @@ describe('DateSelector', () => {
})
it('returns false if the date is before maxdate', () => {
component.maxdate = new Date("2020-01-01")
component.maxdate = new Date('2020-01-01')
component.day = 1
component.month = 1
component.year = 2005