We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 5bbb08c commit 414a282Copy full SHA for 414a282
test/test.js
@@ -448,8 +448,9 @@ describe('Gulp plugin', () => {
448
const valRgx = /^([0-9]{4})\.([0-9]{2})\.([0-9]{2})_([0-9]{2})\.([0-9]{2})\.([0-9]{2})$/
449
dateStr.should.match(valRgx)
450
const match = valRgx.exec(dateStr)
451
+ const currentMonth = now.getMonth()+1;
452
now.getFullYear().should.be.equal(Number(match[1]))
- now.getMonth().should.be.equal(Number(match[2]))
453
+ currentMonth.should.be.equal(Number(match[2]))
454
now.getDate().should.be.equal(Number(match[3]))
455
now.getHours().should.be.equal(Number(match[4]))
456
now.getMinutes().should.be.equal(Number(match[5]))
0 commit comments