Fix linter issues in sites/

This commit is contained in:
freearhey 2025-01-01 12:27:22 +03:00
parent d6d20b6413
commit 5df982bb7c
129 changed files with 3316 additions and 3226 deletions

View file

@ -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([])
})
})