This commit is contained in:
GreenSnakeLinux
2025-06-26 19:08:55 +02:00
parent 3c47aaf9cd
commit 35a99088d7
3 changed files with 118 additions and 122 deletions
@@ -20,8 +20,8 @@ it('can generate valid url', () => {
)
})
it('can parse response', () => {
const result = parser({ date, channel, content })
it('can parse response', async () => {
const result = await parser({ date, channel, content })
expect(result).toMatchObject([
{
start: '2021-11-07T23:35:00.000Z',
@@ -38,8 +38,8 @@ it('can parse response', () => {
])
})
it('can handle empty guide', () => {
const result = parser({
it('can handle empty guide', async () => {
const result = await parser({
date,
channel,
content: