Support account website
field
This commit is contained in:
parent
020cd00804
commit
7c6c373eb2
2 changed files with 7 additions and 0 deletions
|
@ -95,6 +95,12 @@ describe('normalizeAccount()', () => {
|
|||
expect(result.location).toBe('Texas');
|
||||
});
|
||||
|
||||
it('normalizes Truth Social website', () => {
|
||||
const account = require('soapbox/__fixtures__/truthsocial-account.json');
|
||||
const result = normalizeAccount(account);
|
||||
expect(result.website).toBe('https://soapbox.pub');
|
||||
});
|
||||
|
||||
it('sets display_name from username', () => {
|
||||
const account = { username: 'alex' };
|
||||
const result = normalizeAccount(account);
|
||||
|
|
|
@ -45,6 +45,7 @@ export const AccountRecord = ImmutableRecord({
|
|||
uri: '',
|
||||
url: '',
|
||||
username: '',
|
||||
website: '',
|
||||
verified: false,
|
||||
|
||||
// Internal fields
|
||||
|
|
Loading…
Reference in a new issue