Skip to content

Commit 429a4c9

Browse files
author
AmiyahJo
committed
feat: test code to implement the loadMediaItems() method
1 parent 111fa21 commit 429a4c9

File tree

1 file changed

+10
-0
lines changed

1 file changed

+10
-0
lines changed

lesson_10/libraries/src/loaders/amiyah_jones.ts

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,17 @@ export class AmiyahJonesLoader implements Loader {
2222
async loadMediaItems(): Promise<MediaItem[]> {
2323
// TODO: Implement this method.
2424
return [
25+
class Test {
26+
id = '1';
27+
type = 'movie';
28+
title = 'Inception';
29+
genre = 'Sci-Fi';
30+
year = 2010;
2531

32+
load() {
33+
this.loadMediaItems();
34+
}
35+
}
2636
];
2737
}
2838

0 commit comments

Comments
 (0)