mirror of
https://github.com/bitsocialnet/5chan.git
synced 2026-08-03 07:41:04 +02:00
fix(author badges): recognize legacy developer address
This commit is contained in:
@@ -13,5 +13,10 @@
|
||||
"address": "bitsocialist.bso",
|
||||
"name": "Tommaso Casaburi",
|
||||
"githubProfileUrl": "https://github.com/tomcasaburi"
|
||||
},
|
||||
{
|
||||
"address": "plebeius.bso",
|
||||
"name": "Tommaso Casaburi",
|
||||
"githubProfileUrl": "https://github.com/tomcasaburi"
|
||||
}
|
||||
]
|
||||
|
||||
@@ -6,6 +6,7 @@ describe('author display utils', () => {
|
||||
expect(isKnown5chanDeveloper('estebanabaroa.bso')).toBe(true);
|
||||
expect(isKnown5chanDeveloper('rinse12.bso')).toBe(true);
|
||||
expect(isKnown5chanDeveloper('bitsocialist.bso')).toBe(true);
|
||||
expect(isKnown5chanDeveloper('plebeius.bso')).toBe(true);
|
||||
expect(isKnown5chanDeveloper('someone-else.bso')).toBe(false);
|
||||
});
|
||||
|
||||
@@ -20,6 +21,11 @@ describe('author display utils', () => {
|
||||
githubProfileUrl: 'https://github.com/tomcasaburi',
|
||||
name: 'Tommaso Casaburi',
|
||||
});
|
||||
expect(KNOWN_5CHAN_DEVELOPER_ENTRIES).toContainEqual({
|
||||
address: 'plebeius.bso',
|
||||
githubProfileUrl: 'https://github.com/tomcasaburi',
|
||||
name: 'Tommaso Casaburi',
|
||||
});
|
||||
});
|
||||
|
||||
it('labels known developers with the admin icon style', () => {
|
||||
|
||||
Reference in New Issue
Block a user