small hotfix to use fuzzy text lookups and actually utilise the compound index.

This commit is contained in:
iPromKnight
2024-02-29 11:12:17 +00:00
parent e735c8937a
commit fcc4440a7d
3 changed files with 12 additions and 15 deletions

View File

@@ -72,6 +72,12 @@ xdescribe('MongoRepository Tests - Manual Tests against real cluster. Skipped by
expect(result).toBe('tt0084726');
}, 30000);
it('should get Tom and Jerry imdbId correctly', async () => {
await mongoRepository.connect();
const result = await mongoRepository.getImdbId('Tom and Jerry Tales', TorrentType.Series);
expect(result).toBe('tt0780438');
}, 30000);
it('should get Return of the Jedi correctly', async () => {
await mongoRepository.connect();
const result = await mongoRepository.getImdbId('Star Wars: Episode VI - Return of the Jedi', TorrentType.Movie, 1983);