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');
|
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', () => {
|
it('sets display_name from username', () => {
|
||||||
const account = { username: 'alex' };
|
const account = { username: 'alex' };
|
||||||
const result = normalizeAccount(account);
|
const result = normalizeAccount(account);
|
||||||
|
|
|
@ -45,6 +45,7 @@ export const AccountRecord = ImmutableRecord({
|
||||||
uri: '',
|
uri: '',
|
||||||
url: '',
|
url: '',
|
||||||
username: '',
|
username: '',
|
||||||
|
website: '',
|
||||||
verified: false,
|
verified: false,
|
||||||
|
|
||||||
// Internal fields
|
// Internal fields
|
||||||
|
|
Loading…
Reference in a new issue