Files
ncd-fe/packages/pl-fe/src/utils/accounts.test.ts
marcin mikołajczak 6c6f2a2952 pl-fe: Remove remaining barrel exports
Signed-off-by: marcin mikołajczak <git@mkljczk.pl>
2024-10-20 01:33:09 +02:00

18 lines
415 B
TypeScript

import { AccountRecord } from 'pl-fe/normalizers/account';
import {
getDomain,
} from './accounts';
import type { ReducerAccount } from 'pl-fe/reducers/accounts';
describe('getDomain', () => {
const account = AccountRecord({
acct: 'alice',
url: 'https://party.com/users/alice',
}) as ReducerAccount;
it('returns the domain', () => {
expect(getDomain(account)).toEqual('party.com');
});
});