Add preliminary Pixelfed support

This commit is contained in:
Alex Gleason
2022-04-10 18:21:52 -05:00
parent 2ea13e2582
commit 41d49e0fe7
4 changed files with 84 additions and 0 deletions

View File

@ -23,6 +23,15 @@ describe('parseVersion', () => {
compatVersion: '3.0.0',
});
});
it('with a Pixelfed version string', () => {
const version = '2.7.2 (compatible; Pixelfed 0.11.2)';
expect(parseVersion(version)).toEqual({
software: 'Pixelfed',
version: '0.11.2',
compatVersion: '2.7.2',
});
});
});
describe('getFeatures', () => {