Add support for Akkoma

This commit is contained in:
Alex Gleason
2022-11-08 22:34:17 -06:00
parent 2722e418f2
commit a93196b316
4 changed files with 132 additions and 1 deletions

View File

@@ -192,4 +192,12 @@ describe('normalizeInstance()', () => {
const result = normalizeInstance(instance);
expect(result.title).toBe('pixelfed');
});
it('renames Akkoma to Pleroma', () => {
const instance = require('soapbox/__fixtures__/akkoma-instance.json');
const result = normalizeInstance(instance);
expect(result.version).toEqual('2.7.2 (compatible; Pleroma 2.4.5+akkoma)');
});
});