diff --git a/lib/formatters.js b/lib/formatters.js index f7fd8d2..bf603cb 100644 --- a/lib/formatters.js +++ b/lib/formatters.js @@ -82,7 +82,7 @@ exports.mod10 = function (num) { exports.fatorVencimento = function (date) { const parsedDate = moment(date).utc().format('YYYY-MM-DD') - const startDate = moment('1997-10-07').utc().format("YYYY-MM-DD") + const startDate = moment('1997-10-07').utc().format('YYYY-MM-DD') return exports.addTrailingZeros(moment(parsedDate).diff(startDate, 'days'), 4) } diff --git a/package.json b/package.json index 7d9d1df..440eec9 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "node-boleto", - "version": "2.0.4", + "version": "2.0.5", "description": "Boleto generator in Node.js", "main": "index.js", "scripts": { diff --git a/test/integration/bradesco/boleto.spec.js b/test/integration/bradesco/boleto.spec.js index 3bcd55f..b30d4af 100644 --- a/test/integration/bradesco/boleto.spec.js +++ b/test/integration/bradesco/boleto.spec.js @@ -104,7 +104,7 @@ describe('Bradesco Boleto', () => { boletos.forEach(boleto => { expect(boleto.bank.options).to.have.property('logoURL').that.contains('bradesco.jpg') expect(boleto.bank.options).to.have.property('codigo', '237') - }); + }) }) it('contains correct codigo_banco', () => {