mirror of
https://github.com/iptv-org/epg.git
synced 2025-05-10 00:50:09 -04:00
Fix linter issues in sites/
This commit is contained in:
parent
d6d20b6413
commit
5df982bb7c
129 changed files with 3316 additions and 3226 deletions
|
@ -1,6 +1,4 @@
|
|||
const { parser, url } = require('./snrt.ma.config.js')
|
||||
const cheerio = require('cheerio')
|
||||
const { DateTime } = require('luxon')
|
||||
const dayjs = require('dayjs')
|
||||
const utc = require('dayjs/plugin/utc')
|
||||
const timezone = require('dayjs/plugin/timezone')
|
||||
|
@ -25,16 +23,14 @@ it('can parse response', () => {
|
|||
})
|
||||
|
||||
expect(results[0]).toMatchObject({
|
||||
"category": "القرآن الكريم",
|
||||
"description": "",
|
||||
"start": "2024-12-19T06:00:00.000Z",
|
||||
"stop": "2024-12-19T06:10:00.000Z",
|
||||
"stop": "2024-12-19T06:30:00.000Z",
|
||||
"title": "ﺍﻟﺴﻼﻡ ﺍﻟﻮﻃﻨﻲ + ﺍﻟﻘﺮﺁﻥ ﺍﻟﻜﺮﻳﻢ"
|
||||
category: 'القرآن الكريم',
|
||||
description: '',
|
||||
start: '2024-12-19T06:00:00.000Z',
|
||||
stop: '2024-12-19T06:30:00.000Z',
|
||||
title: 'ﺍﻟﺴﻼﻡ ﺍﻟﻮﻃﻨﻲ + ﺍﻟﻘﺮﺁﻥ ﺍﻟﻜﺮﻳﻢ'
|
||||
})
|
||||
})
|
||||
|
||||
|
||||
it('can handle empty guide', () => {
|
||||
const result = parser({
|
||||
date,
|
||||
|
@ -42,4 +38,4 @@ it('can handle empty guide', () => {
|
|||
content: '<!DOCTYPE html><html lang="ar" dir="rtl"><head></head><body></body></html>'
|
||||
})
|
||||
expect(result).toMatchObject([])
|
||||
})
|
||||
})
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue