From 48e0737661ce95d2b7baff4d542ff91023ea724b Mon Sep 17 00:00:00 2001 From: Aleksandr Statciuk Date: Thu, 25 Nov 2021 01:35:54 +0300 Subject: [PATCH] Update rtb.gov.bn.test.js --- sites/rtb.gov.bn/rtb.gov.bn.test.js | 10 ++++++++++ 1 file changed, 10 insertions(+) diff --git a/sites/rtb.gov.bn/rtb.gov.bn.test.js b/sites/rtb.gov.bn/rtb.gov.bn.test.js index 474df3d9..2f31c19b 100644 --- a/sites/rtb.gov.bn/rtb.gov.bn.test.js +++ b/sites/rtb.gov.bn/rtb.gov.bn.test.js @@ -37,6 +37,11 @@ it('can parse Sukmaindera 11 November 2021.pdf', done => { ) parser({ buffer, date }) .then(results => { + results = results.map(p => { + p.start = p.start.toJSON() + p.stop = p.stop.toJSON() + return p + }) expect(results.length).toBe(47) expect(results[0]).toMatchObject({ start: '2021-11-10T22:00:00.000Z', @@ -61,6 +66,11 @@ it('can parse Aneka 11 November 2021.pdf', done => { }) parser({ buffer, date }) .then(results => { + results = results.map(p => { + p.start = p.start.toJSON() + p.stop = p.stop.toJSON() + return p + }) expect(results.length).toBe(26) expect(results[4]).toMatchObject({ start: '2021-11-11T03:00:00.000Z',