15 lines
328 B
JavaScript
15 lines
328 B
JavaScript
import { AccountRecord } from 'soapbox/normalizers';
|
|
|
|
import {
|
|
getDomain,
|
|
} from '../accounts';
|
|
|
|
describe('getDomain', () => {
|
|
const account = AccountRecord({
|
|
acct: 'alice',
|
|
url: 'https://party.com/users/alice',
|
|
});
|
|
it('returns the domain', () => {
|
|
expect(getDomain(account)).toEqual('party.com');
|
|
});
|
|
});
|