mirror of
https://github.com/NodeBB/NodeBB.git
synced 2025-10-28 17:46:16 +01:00
28 lines
625 B
JavaScript
28 lines
625 B
JavaScript
|
|
'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: '',
|
||
|
|
},
|
||
|
|
});
|
||
|
|
});
|
||
|
|
});
|
||
|
|
});
|