mirror of
https://github.com/IT4Change/gradido.git
synced 2025-12-13 07:45:54 +00:00
the last and current month is displayed cleanly again.
This commit is contained in:
parent
2386a980c6
commit
3cc7339ca6
@ -109,8 +109,8 @@ describe('ContributionForm', () => {
|
||||
})
|
||||
|
||||
describe('minimalDate', () => {
|
||||
it('has "2020-06-01T00:00:00.000Z"', () => {
|
||||
expect(wrapper.vm.minimalDate.toISOString()).toBe('2020-06-01T00:00:00.000Z')
|
||||
it('has "2020-05-01T00:00:00.000Z"', () => {
|
||||
expect(wrapper.vm.minimalDate.toISOString()).toBe('2020-05-01T00:00:00.000Z')
|
||||
})
|
||||
})
|
||||
|
||||
@ -136,8 +136,8 @@ describe('ContributionForm', () => {
|
||||
})
|
||||
|
||||
describe('minimalDate', () => {
|
||||
it('has "2020-06-01T00:00:00.000Z"', () => {
|
||||
expect(wrapper.vm.minimalDate.toISOString()).toBe('2020-06-01T00:00:00.000Z')
|
||||
it('has "2020-05-01T00:00:00.000Z"', () => {
|
||||
expect(wrapper.vm.minimalDate.toISOString()).toBe('2020-05-01T00:00:00.000Z')
|
||||
})
|
||||
})
|
||||
|
||||
@ -159,8 +159,8 @@ describe('ContributionForm', () => {
|
||||
})
|
||||
|
||||
describe('minimalDate', () => {
|
||||
it('has "2019-12-01T00:00:00.000Z"', () => {
|
||||
expect(wrapper.vm.minimalDate.toISOString()).toBe('2019-12-01T00:00:00.000Z')
|
||||
it('has "2019-11-01T00:00:00.000Z"', () => {
|
||||
expect(wrapper.vm.minimalDate.toISOString()).toBe('2019-11-01T00:00:00.000Z')
|
||||
})
|
||||
})
|
||||
|
||||
@ -186,8 +186,8 @@ describe('ContributionForm', () => {
|
||||
})
|
||||
|
||||
describe('minimalDate', () => {
|
||||
it('has "2019-12-01T00:00:00.000Z"', () => {
|
||||
expect(wrapper.vm.minimalDate.toISOString()).toBe('2019-12-01T00:00:00.000Z')
|
||||
it('has "2019-11-01T00:00:00.000Z"', () => {
|
||||
expect(wrapper.vm.minimalDate.toISOString()).toBe('2019-11-01T00:00:00.000Z')
|
||||
})
|
||||
})
|
||||
|
||||
|
||||
@ -134,7 +134,7 @@ export default {
|
||||
// sets the date to the 1st of the previous month
|
||||
let date = new Date(this.maximalDate) // has to be a new object, because of 'setMonth' changes the objects date
|
||||
date = new Date(date.setMonth(date.getMonth() - 1))
|
||||
return new Date(date.getFullYear(), date.getMonth(), 1)
|
||||
return new Date(date.getFullYear(), date.getMonth() - 1)
|
||||
},
|
||||
disabled() {
|
||||
return (
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user