diff --git a/test/main.js b/test/main.js index 1593a10..486aa17 100644 --- a/test/main.js +++ b/test/main.js @@ -201,6 +201,20 @@ describe('#irs', function() { irs.calculateBaseBillAmount(splitted).should.equal(140560, '#2CBDCEB8'); }) + + it('should return correct value - inquiry - tajira', () => { + const detail = 'REFID:52055038964420747312/NAMA:MASJID AN NUR/KATEGORIDAYA:S2/450/PERIODE:092020/TAGIHANASLI:7140/DENDA:3000/ADMIN:2750/TOTALBAYAR:12.890'; + const splitted = irs.splitPostpaidDetail(detail); + + irs.calculateBaseBillAmount( + splitted, + null, + // { + // KEYWORD_TAGASLI: 'TAGIHANASLI,DENDA', + // }, + // 1 + ).should.equal(10140); + }); }); describe('#getBillCount', () => {