iptv-org / epg

Utilities for downloading the EPG (Electronic Program Guide) for thousands of TV channels from hundreds of sources.
https://iptv-org.github.io/
The Unlicense
1.66k stars 156 forks source link

tvgids.nl #2400

Open freearhey opened 4 days ago

freearhey commented 4 days ago

Site

tvgids.nl

Description

Test failed:

npm test -- tvgids.nl            

> test
> run-script-os tvgids.nl

> test:default
> TZ=Pacific/Nauru npx jest --runInBand tvgids.nl

 FAIL  sites/tvgids.nl/tvgids.nl.test.js
  ✓ can generate valid url (29 ms)
  ✕ can generate valid url for today (4 ms)
  ✓ can parse response (307 ms)
  ✓ can handle empty guide (3 ms)

  ● can generate valid url for today

    expect(received).toBe(expected) // Object.is equality

    Expected: "https://www.tvgids.nl/gids/npo1"
    Received: "https://www.tvgids.nl/gids/25-06-2024/npo1"

      21 |   const today = dayjs().startOf('d')
      22 |
    > 23 |   expect(url({ date: today, channel })).toBe('https://www.tvgids.nl/gids/npo1')
         |                                         ^
      24 | })
      25 |
      26 | it('can parse response', () => {

      at Object.<anonymous> (sites/tvgids.nl/tvgids.nl.test.js:23:41)

Test Suites: 1 failed, 1 total
Tests:       1 failed, 3 passed, 4 total
Snapshots:   0 total
Time:        3.52 s
Ran all test suites matching /tvgids.nl/i.