mirror of
https://github.com/omnivore-app/omnivore.git
synced 2026-03-11 08:54:26 +00:00
fix tests
This commit is contained in:
parent
ef0c2434fb
commit
7b714e7bc3
1 changed files with 3 additions and 7 deletions
|
|
@ -8,7 +8,7 @@ import { SubstackHandler } from '../src/substack-handler'
|
|||
import { AxiosHandler } from '../src/axios-handler'
|
||||
import { BloombergHandler } from '../src/bloomberg-handler'
|
||||
import { GolangHandler } from '../src/golang-handler'
|
||||
import { getNewsletterHandler } from '../src'
|
||||
import { getNewsletterHandler, parseUnsubscribe } from '../src'
|
||||
import { MorningBrewHandler } from '../src/morning-brew-handler'
|
||||
|
||||
describe('Confirmation email test', () => {
|
||||
|
|
@ -158,17 +158,13 @@ describe('Newsletter email test', () => {
|
|||
it('returns mail to address if exists', () => {
|
||||
const header = `<https://omnivore.com/unsub>, <mailto:${mailTo}>`
|
||||
|
||||
expect(new NewsletterHandler().parseUnsubscribe(header).mailTo).to.equal(
|
||||
mailTo
|
||||
)
|
||||
expect(parseUnsubscribe(header).mailTo).to.equal(mailTo)
|
||||
})
|
||||
|
||||
it('returns http url if exists', () => {
|
||||
const header = `<${httpUrl}>`
|
||||
|
||||
expect(new NewsletterHandler().parseUnsubscribe(header).httpUrl).to.equal(
|
||||
httpUrl
|
||||
)
|
||||
expect(parseUnsubscribe(header).httpUrl).to.equal(httpUrl)
|
||||
})
|
||||
})
|
||||
})
|
||||
|
|
|
|||
Loading…
Reference in a new issue