feat: add topic alias resolution APIs
This commit is contained in:
@@ -113,4 +113,12 @@ describe('IdentityDB queries', () => {
|
||||
'software technology',
|
||||
]);
|
||||
});
|
||||
});
|
||||
|
||||
it('resolves alias names in topic lookups', async () => {
|
||||
await db.addTopicAlias('TypeScript', 'TS');
|
||||
|
||||
const topic = await db.getTopicByName('ts');
|
||||
|
||||
expect(topic?.name).toBe('TypeScript');
|
||||
});
|
||||
});
|
||||
|
||||
Reference in New Issue
Block a user