Merge pull request 'fix date in a front test' (#329) from 2355-front_test_zone into dev
gitea/salix/pipeline/head There was a failure building this commit
Details
gitea/salix/pipeline/head There was a failure building this commit
Details
Reviewed-by: Joan Sanchez <joan@verdnatura.es>
This commit is contained in:
commit
ae90d30725
|
@ -33,6 +33,7 @@ describe('component vnZoneCalendar', () => {
|
|||
describe('step()', () => {
|
||||
it('should set the date month to 4 months backwards', () => {
|
||||
const now = new Date();
|
||||
now.setDate(15);
|
||||
now.setMonth(now.getMonth() - 4);
|
||||
|
||||
controller.step(-1);
|
||||
|
@ -45,6 +46,7 @@ describe('component vnZoneCalendar', () => {
|
|||
|
||||
it('should set the date month to 4 months forwards', () => {
|
||||
const now = new Date();
|
||||
now.setDate(15);
|
||||
now.setMonth(now.getMonth() + 4);
|
||||
|
||||
controller.step(1);
|
||||
|
|
Loading…
Reference in New Issue