import { MetadataService } from './metadata.service';

describe('MetadataService', () => {
  it('returns public profile option lists for Flutter', () => {
    const service = new MetadataService();

    const result = service.getProfileOptions();

    expect(Object.keys(result).sort()).toEqual(
      ['experienceLevels', 'instruments', 'maqams', 'moods', 'musicRoles'].sort(),
    );
    expect(result.musicRoles.length).toBeGreaterThan(0);
    expect(Object.values(result).flat().every((value) => typeof value === 'string')).toBe(true);
  });
});
