Update tests/__data__

This commit is contained in:
freearhey
2025-01-12 21:33:17 +03:00
parent 71d777e235
commit 89bc036b01
3 changed files with 79 additions and 0 deletions

View File

@@ -0,0 +1,16 @@
module.exports = {
site: 'example.com',
url({ channel, date }) {
return `https://example.com/api/${channel.site_id}/${date.format('YYYY-MM-DD')}`
},
parser({ content }) {
try {
return JSON.parse(content)
} catch {
return []
}
},
channels() {
return []
}
}