Update dsmart.com.tr

This commit is contained in:
Aleksandr Statciuk committed 2022-02-01 04:53:20 +03:00
1 parent 2ba75f690d
commit a9ea96f460
2 files changed
+1 -12

No files matched your search

+1 -7
View File
@@ -1,6 +1,6 @@
// npx epg-grabber --config=sites/dsmart.com.tr/dsmart.com.tr.config.js --channels=sites/dsmart.com.tr/dsmart.com.tr_tr.channels.xml --output=guide.xml --timeout=30000 --days=2
const { parser, url, logo } = require('./dsmart.com.tr.config.js')
const { parser, url } = require('./dsmart.com.tr.config.js')
const dayjs = require('dayjs')
const utc = require('dayjs/plugin/utc')
const customParseFormat = require('dayjs/plugin/customParseFormat')
@@ -20,12 +20,6 @@ it('can generate valid url', () => {
)
})
it('can get logo url', () => {
expect(logo({ content, channel })).toBe(
'https://www.dsmart.com.tr/epg/images/0x50/59f97253cfef0b75f4723ded'
)
})
it('can parse response', () => {
const result = parser({ date, channel, content })
expect(result).toMatchObject([