Merge pull request #3340 from omnivore-app/fix/test

fix rss handler tests
This commit is contained in:
Hongbo Wu 2024-01-09 12:36:19 +08:00 committed by GitHub
commit 26f91b3601
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -7,7 +7,7 @@ describe('fetchAndChecksum', () => {
it('should hash the content available', async () => {
nock('https://fake.com', {}).get('/rss.xml').reply(200, 'i am some content')
const result = await fetchAndChecksum('https://fake.com/rss.xml')
expect(result.checksum).to.eq(
expect(result?.checksum).to.eq(
'd6bc10faec048d999d0cf4b2f7103d84557fb9cd94c3bccd17884b1288949375'
)
})