fix date in a front test
gitea/salix/pipeline/head This commit looks good
Details
gitea/salix/pipeline/head This commit looks good
Details
This commit is contained in:
parent
bd1ea0f8a0
commit
d77297941f
|
@ -33,6 +33,7 @@ describe('component vnZoneCalendar', () => {
|
||||||
describe('step()', () => {
|
describe('step()', () => {
|
||||||
it('should set the date month to 4 months backwards', () => {
|
it('should set the date month to 4 months backwards', () => {
|
||||||
const now = new Date();
|
const now = new Date();
|
||||||
|
now.setDate(15);
|
||||||
now.setMonth(now.getMonth() - 4);
|
now.setMonth(now.getMonth() - 4);
|
||||||
|
|
||||||
controller.step(-1);
|
controller.step(-1);
|
||||||
|
|
Loading…
Reference in New Issue