mirror of
https://github.com/NodeBB/NodeBB.git
synced 2025-10-26 16:46:12 +01:00
test: added test cases for activitypub integration, WIP
This commit is contained in:
27
test/activitypub.js
Normal file
27
test/activitypub.js
Normal file
@@ -0,0 +1,27 @@
|
||||
'use strict';
|
||||
|
||||
const nconf = require('nconf');
|
||||
const request = require('request-promise-native');
|
||||
|
||||
const db = require('./mocks/databasemock');
|
||||
|
||||
describe('ActivityPub integration', () => {
|
||||
describe('WebFinger endpoint', () => {
|
||||
it('should return a 404 Not Found if no user exists by that username', async () => {
|
||||
const response = await request(`${nconf.get('url')}/register/complete`, {
|
||||
method: 'post',
|
||||
jar,
|
||||
json: true,
|
||||
followRedirect: false,
|
||||
simple: false,
|
||||
resolveWithFullResponse: true,
|
||||
headers: {
|
||||
'x-csrf-token': token,
|
||||
},
|
||||
form: {
|
||||
email: '',
|
||||
},
|
||||
});
|
||||
});
|
||||
});
|
||||
});
|
||||
Reference in New Issue
Block a user