bigbuffet-rw/app/soapbox/utils/__tests__/accounts-test.js
Alex Gleason d738e7d5bf
Fix tests
2022-04-02 21:40:47 -05:00

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');
});
});