mirror of
https://github.com/omnivore-app/omnivore.git
synced 2026-03-11 08:54:26 +00:00
15 lines
450 B
TypeScript
15 lines
450 B
TypeScript
import { AppleNewsHandler } from '../src/websites/apple-news-handler'
|
|
import nock from 'nock'
|
|
|
|
describe('open a simple web page', () => {
|
|
before(() => {
|
|
nock('https://apple.news').get('/AxjzaZaPvSn23b67LhXI5EQ').reply(200, '')
|
|
})
|
|
|
|
it('should return a response', async () => {
|
|
const response = await new AppleNewsHandler().preHandle(
|
|
'https://apple.news/AxjzaZaPvSn23b67LhXI5EQ'
|
|
)
|
|
console.log('response', response)
|
|
})
|
|
})
|