Skip to content

Commit 07d71a9

Browse files
committed
test: fix types
1 parent 630eb94 commit 07d71a9

File tree

1 file changed

+6
-6
lines changed

1 file changed

+6
-6
lines changed

tests/movie.test.ts

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,7 @@ import {
2424
} from '../src/helpers/movie.helper';
2525
import { CSFDColorRating } from '../src/interfaces/global';
2626
import {
27-
CSFDCreator,
27+
CSFDMovieCreator,
2828
CSFDMovieListItem,
2929
CSFDPremiere,
3030
CSFDTitlesOther,
@@ -445,7 +445,7 @@ describe('Get ratings', () => {
445445
describe('Get people', () => {
446446
test('directors', () => {
447447
const movie = getMovieGroup(movieNode, 'Režie');
448-
expect(movie).toEqual<CSFDCreator[]>([
448+
expect(movie).toEqual<CSFDMovieCreator[]>([
449449
{
450450
id: 87470,
451451
name: 'S. Craig Zahler',
@@ -455,7 +455,7 @@ describe('Get people', () => {
455455
});
456456
test('Screenwriters', () => {
457457
const movie = getMovieGroup(movieNode, 'Scénář');
458-
expect(movie.slice(0, 1)).toEqual<CSFDCreator[]>([
458+
expect(movie.slice(0, 1)).toEqual<CSFDMovieCreator[]>([
459459
{
460460
id: 87470,
461461
name: 'S. Craig Zahler',
@@ -465,13 +465,13 @@ describe('Get people', () => {
465465
});
466466
test('Music composers', () => {
467467
const movie = getMovieGroup(movieNode, 'Hudba');
468-
expect(movie.slice(0, 1)).toEqual<CSFDCreator[]>([
468+
expect(movie.slice(0, 1)).toEqual<CSFDMovieCreator[]>([
469469
{ id: 203209, name: 'Jeff Herriott', url: 'https://www.csfd.cz/tvurce/203209-jeff-herriott/' }
470470
]);
471471
});
472472
test('Actors', () => {
473473
const movie = getMovieGroup(movieNode, 'Hrají');
474-
expect(movie.slice(0, 1)).toEqual<CSFDCreator[]>([
474+
expect(movie.slice(0, 1)).toEqual<CSFDMovieCreator[]>([
475475
{
476476
id: 1,
477477
name: 'Mel Gibson',
@@ -481,7 +481,7 @@ describe('Get people', () => {
481481
});
482482
test('Based on', () => {
483483
const movie = getMovieGroup(movieNode, 'Předloha');
484-
expect(movie.slice(0, 1)).toEqual<CSFDCreator[]>([]);
484+
expect(movie.slice(0, 1)).toEqual<CSFDMovieCreator[]>([]);
485485
});
486486

487487
describe('Get premieres', () => {

0 commit comments

Comments
 (0)