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

moji.id #2392

Open
freearhey opened this issue Jun 24, 2024 · 0 comments
Open

moji.id #2392

freearhey opened this issue Jun 24, 2024 · 0 comments
Labels
broken guide Error in the EPG

Comments

@freearhey
Copy link
Collaborator

Site

moji.id

Description

Test failed:

npm test -- moji.id

> test
> run-script-os moji.id


> test:default
> TZ=Pacific/Nauru npx jest --runInBand moji.id

 FAIL  sites/moji.id/moji.id.test.js
  ✓ can generate valid url (4 ms)
  ✓ can handle empty guide (12 ms)
  ✕ can parse response (103 ms)

  ● can parse response

    expect(received).toMatchObject(expected)

    - Expected  -  2
    + Received  + 38

      Object {
        "description": "Informasi seputar menjaga vitalitas pria",
    -   "start": "2023-08-17T17:00:00.000Z",
    -   "stop": "2023-08-17T17:30:00.000Z",
    +   "start": Object {
    +     "$D": 18,
    +     "$H": 0,
    +     "$L": "en",
    +     "$M": 7,
    +     "$W": 0,
    +     "$d": 2024-08-17T12:00:00.000Z,
    +     "$isDayjsObject": true,
    +     "$m": 0,
    +     "$ms": 0,
    +     "$offset": 420,
    +     "$s": 0,
    +     "$u": false,
    +     "$x": Object {
    +       "$localOffset": -720,
    +       "$timezone": "Asia/Jakarta",
    +     },
    +     "$y": 2024,
    +   },
    +   "stop": Object {
    +     "$D": 18,
    +     "$H": 0,
    +     "$L": "en",
    +     "$M": 7,
    +     "$W": 0,
    +     "$d": 2024-08-17T12:30:00.000Z,
    +     "$isDayjsObject": true,
    +     "$m": 30,
    +     "$ms": 0,
    +     "$offset": 420,
    +     "$s": 0,
    +     "$u": false,
    +     "$x": Object {
    +       "$localOffset": -720,
    +       "$timezone": "Asia/Jakarta",
    +     },
    +     "$y": 2024,
    +   },
        "title": "TRUST",
      }

      27 |   const results = parser({ content: content, date: date })
      28 |
    > 29 |   expect(results[0]).toMatchObject({
         |                      ^
      30 |     title: 'TRUST',
      31 |     start: dayjs.tz('2023 Aug 18 00:00', 'YYYY MMM DD HH:mm', 'Asia/Jakarta'),
      32 |     stop: dayjs.tz('2023 Aug 18 00:30', 'YYYY MMM DD HH:mm', 'Asia/Jakarta'),

      at Object.<anonymous> (sites/moji.id/moji.id.test.js:29:22)

Test Suites: 1 failed, 1 total
Tests:       1 failed, 2 passed, 3 total
Snapshots:   0 total
Time:        4.154 s
Ran all test suites matching /moji.id/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
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

No branches or pull requests

1 participant