Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

chaines-tv.orange.fr #2395

Open
freearhey opened this issue Jun 24, 2024 · 2 comments · May be fixed by #2514 or #2519
Open

chaines-tv.orange.fr #2395

freearhey opened this issue Jun 24, 2024 · 2 comments · May be fixed by #2514 or #2519
Labels
broken guide Error in the EPG

Comments

@freearhey
Copy link
Collaborator

Site

chaines-tv.orange.fr

Description

Test failed:

npm test -- chaines-tv.orange.fr

> test
> run-script-os chaines-tv.orange.fr


> test:default
> TZ=Pacific/Nauru npx jest --runInBand chaines-tv.orange.fr

 FAIL  sites/chaines-tv.orange.fr/chaines-tv.orange.fr.test.js
  ✓ can generate valid url (5 ms)
  ✕ can parse response (12 ms)
  ✓ can handle empty guide (1 ms)

  ● can parse response

    expect(received).toMatchObject(expected)

    - Expected  - 1
    + Received  + 1

    @@ -3,8 +3,8 @@
          "category": "Série Suspense",
          "description": "Un tueur en série prend un plaisir pervers à prévenir les autorités de Tallahassee avant chaque nouveau meurtre. Rossi apprend le décès d'un de ses vieux amis.",
          "icon": "https://proxymedia.woopic.com/340/p/169_EMI_9697669.jpg",
          "start": "2021-11-07T23:35:00.000Z",
          "stop": "2021-11-08T00:20:00.000Z",
    -     "title": "Tête de liste",
    +     "title": "Esprits criminels",
        },
      ]

      23 | it('can parse response', () => {
      24 |   const result = parser({ date, channel, content })
    > 25 |   expect(result).toMatchObject([
         |                  ^
      26 |     {
      27 |       start: '2021-11-07T23:35:00.000Z',
      28 |       stop: '2021-11-08T00:20:00.000Z',

      at Object.<anonymous> (sites/chaines-tv.orange.fr/chaines-tv.orange.fr.test.js:25:18)

Test Suites: 1 failed, 1 total
Tests:       1 failed, 2 passed, 3 total
Snapshots:   0 total
Time:        4.003 s
Ran all test suites matching /chaines-tv.orange.fr/i.
@freearhey freearhey added the broken guide Error in the EPG label Jun 24, 2024
freearhey added a commit that referenced this issue Jun 24, 2024
BellezaEmporium pushed a commit that referenced this issue Nov 8, 2024
@BellezaEmporium
Copy link
Contributor

There's something linked to how the title is being parsed. Found that out, and fixed it. It's on a maintenance branch I have.

tohenk pushed a commit that referenced this issue Dec 2, 2024
@BellezaEmporium
Copy link
Contributor

#2514 fixes that issue.

This was referenced Dec 17, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
broken guide Error in the EPG
Development

Successfully merging a pull request may close this issue.

2 participants