add test
This commit is contained in:
parent
8e5a967f01
commit
0937d71c2f
|
@ -24,6 +24,12 @@ describe('API ap/show', () => {
|
||||||
strictEqual(res.object.uri, `https://b.test/users/${bob.id}`);
|
strictEqual(res.object.uri, `https://b.test/users/${bob.id}`);
|
||||||
});
|
});
|
||||||
|
|
||||||
|
test('resolve local user by local uri', async () => {
|
||||||
|
const res = await alice.client.request('ap/show', { uri: `https://a.test/users/${alice.id}` });
|
||||||
|
strictEqual(res.type, 'User');
|
||||||
|
strictEqual(res.object.id, alice.id);
|
||||||
|
});
|
||||||
|
|
||||||
test('resolve local user by local profile url', async () => {
|
test('resolve local user by local profile url', async () => {
|
||||||
const res = await alice.client.request('ap/show', { uri: `https://a.test/@${alice.username}` });
|
const res = await alice.client.request('ap/show', { uri: `https://a.test/@${alice.username}` });
|
||||||
strictEqual(res.type, 'User');
|
strictEqual(res.type, 'User');
|
||||||
|
|
Loading…
Reference in New Issue