Skip to content

Commit 414a282

Browse files
author
Attila Seres
committed
Fix testcase for timestamp
1 parent 5bbb08c commit 414a282

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

test/test.js

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -448,8 +448,9 @@ describe('Gulp plugin', () => {
448448
const valRgx = /^([0-9]{4})\.([0-9]{2})\.([0-9]{2})_([0-9]{2})\.([0-9]{2})\.([0-9]{2})$/
449449
dateStr.should.match(valRgx)
450450
const match = valRgx.exec(dateStr)
451+
const currentMonth = now.getMonth()+1;
451452
now.getFullYear().should.be.equal(Number(match[1]))
452-
now.getMonth().should.be.equal(Number(match[2]))
453+
currentMonth.should.be.equal(Number(match[2]))
453454
now.getDate().should.be.equal(Number(match[3]))
454455
now.getHours().should.be.equal(Number(match[4]))
455456
now.getMinutes().should.be.equal(Number(match[5]))

0 commit comments

Comments
 (0)