mirror of
https://github.com/iptv-org/epg.git
synced 2025-05-10 09:00:07 -04:00
Update rtb.gov.bn.test.js
This commit is contained in:
parent
8dad4ed76c
commit
48e0737661
1 changed files with 10 additions and 0 deletions
|
@ -37,6 +37,11 @@ it('can parse Sukmaindera 11 November 2021.pdf', done => {
|
||||||
)
|
)
|
||||||
parser({ buffer, date })
|
parser({ buffer, date })
|
||||||
.then(results => {
|
.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.length).toBe(47)
|
||||||
expect(results[0]).toMatchObject({
|
expect(results[0]).toMatchObject({
|
||||||
start: '2021-11-10T22:00:00.000Z',
|
start: '2021-11-10T22:00:00.000Z',
|
||||||
|
@ -61,6 +66,11 @@ it('can parse Aneka 11 November 2021.pdf', done => {
|
||||||
})
|
})
|
||||||
parser({ buffer, date })
|
parser({ buffer, date })
|
||||||
.then(results => {
|
.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.length).toBe(26)
|
||||||
expect(results[4]).toMatchObject({
|
expect(results[4]).toMatchObject({
|
||||||
start: '2021-11-11T03:00:00.000Z',
|
start: '2021-11-11T03:00:00.000Z',
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue