identify-media
Version:
Analyse file path and content to make search criteria for media APIs
16 lines (14 loc) • 410 B
text/typescript
import {searchOmdb} from "../../../src";
describe('Search OMDB', () => {
test('map OMDB query to result', () => {
expect(searchOmdb({s: 'test title'}, 'apikey')).toEqual({
baseURL: 'https://www.omdbapi.com',
method: 'GET',
params: {
apikey: 'apikey',
s: 'test title',
},
url: '/',
});
});
});