2021-03-12 19:03:56 +01:00
|
|
|
|
|
|
|
jest.disableAutomock()
|
|
|
|
jest.unmock('got')
|
|
|
|
|
|
|
|
const { getWebmentions } = require('./../../src/webmention/get')
|
|
|
|
const domain = "brainbaking.com"
|
|
|
|
|
|
|
|
describe("webmention receive scenario test", () => {
|
|
|
|
|
2022-04-25 09:26:26 +02:00
|
|
|
// this tests against the real endpoint, meaning the token has to be correct.
|
2021-03-12 19:03:56 +01:00
|
|
|
test("getWebmentions fetches anything at all", async () => {
|
2022-04-25 09:26:26 +02:00
|
|
|
const result = await getWebmentions(domain, {
|
|
|
|
token: 'miauwkes',
|
|
|
|
endpoint: 'https://jam.brainbaking.com'
|
|
|
|
})
|
|
|
|
//expect(result.length).toBeGreaterThan(-1)
|
2021-03-12 19:03:56 +01:00
|
|
|
})
|
|
|
|
|
|
|
|
})
|