bigbuffet-rw/app/soapbox/utils/__tests__/accounts.test.ts
marcin mikołajczak 5fec879148 Fix mutes test, prefer TypeScript for tests
Signed-off-by: marcin mikołajczak <git@mkljczk.pl>
2022-06-12 16:30:48 +02:00

15 lines
328 B
TypeScript

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