Commit 2b2e7581eb1a3dd13cc82ff2afa6fe6bdddc24f1

Authored by Adhidarma Hadiwinoto
1 parent 99f38aa7c6
Exists in master

More test on TAJIRA PLN

Showing 1 changed file with 14 additions and 0 deletions Side-by-side Diff

... ... @@ -201,6 +201,20 @@ describe('#irs', function() {
201 201 irs.calculateBaseBillAmount(splitted).should.equal(140560, '#2CBDCEB8');
202 202  
203 203 })
  204 +
  205 + it('should return correct value - inquiry - tajira', () => {
  206 + const detail = 'REFID:52055038964420747312/NAMA:MASJID AN NUR/KATEGORIDAYA:S2/450/PERIODE:092020/TAGIHANASLI:7140/DENDA:3000/ADMIN:2750/TOTALBAYAR:12.890';
  207 + const splitted = irs.splitPostpaidDetail(detail);
  208 +
  209 + irs.calculateBaseBillAmount(
  210 + splitted,
  211 + null,
  212 + // {
  213 + // KEYWORD_TAGASLI: 'TAGIHANASLI,DENDA',
  214 + // },
  215 + // 1
  216 + ).should.equal(10140);
  217 + });
204 218 });
205 219  
206 220 describe('#getBillCount', () => {