Skip to content

Commit

Permalink
test: fix live tests
Browse files Browse the repository at this point in the history
  • Loading branch information
bartholomej committed Aug 21, 2024
1 parent 49f6d40 commit 3cd0475
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions tests/fetchers.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -66,13 +66,14 @@ describe('Live: Search', () => {
});
});

// Creator
// Creator
describe('Live: Creator page', () => {
test('Fetch `2018-jan-werich` creator', async () => {
const creator = await csfd.creator(2018);
expect(creator.name).toEqual<string>('Jan Werich');
expect(creator.birthday).toEqual('06.02.1905');
expect(creator.birthplace).toEqual('Praha, Praha, Hlavní město Praha, Rakousko-Uhersko');
expect(creator.birthplace).toContain('Rakousko-Uhersko');
expect(creator.birthplace).toContain('Praha');
expect(creator.films.find((film) => film.title === 'Hej-rup!')).toEqual<CSFDCreatorScreening>({
id: 3106,
title: 'Hej-rup!',
Expand Down

0 comments on commit 3cd0475

Please sign in to comment.