13 lines
783 B
TypeScript
13 lines
783 B
TypeScript
import { expect, it } from 'vitest';
|
|
import { resolveBlogAuthorIdentity } from './blogAuthor';
|
|
|
|
it('models the specialty team account as Organization without inventing a person', () => {
|
|
expect(resolveBlogAuthorIdentity({ author: { firstName: 'کارشناس رفتار و نگهداری', lastName: 'تیم کنینا' }, authorTeam: 'پوست، مو و آلرژی' })).toEqual({
|
|
type: 'Organization', name: 'کارشناس رفتار و نگهداری تیم کنینا', teamName: 'پوست، مو و آلرژی',
|
|
});
|
|
});
|
|
|
|
it('keeps a named individual a Person even when affiliated with an editorial team', () => {
|
|
expect(resolveBlogAuthorIdentity({ author: { firstName: 'سارا', lastName: 'احمدی' }, authorTeam: 'تیم کنینا' }).type).toBe('Person');
|
|
});
|