import { describe, expect, it } from '@jest/globals';
import data from '../../docs/default-firebase-data.json';
import { MemberData } from './member';
import { allKeys } from './utils';

describe('partner', () => {
  it('matches the shape of the default data', () => {
    const members: MemberData[] = Object.values(data['team'][0]!['members']);
    const keys: Array<keyof MemberData> = [
      'name',
      'order',
      'photo',
      'photoUrl',
      'socials',
      'title',
    ];

    expect(members).toHaveLength(8);
    expect(allKeys(members)).toStrictEqual(keys);
  });
});
