jam-my-stack/test/webmention/get-e2e.test.js

23 lines
560 B
JavaScript
Raw Permalink Normal View History

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 () => {
try {
const result = await getWebmentions(domain, {
token: process.env.WEBMENTION_TOKEN,
endpoint: 'https://jam.brainbaking.com'
})
//expect(result.length).toBeGreaterThan(-1)
} catch {
}
2021-03-12 19:03:56 +01:00
})
})