webstreamr-github/src/source/VixSrc.test.ts
2025-07-02 09:28:10 +00:00

23 lines
716 B
TypeScript

import { createTestContext } from '../test';
import { FetcherMock, ImdbId } from '../utils';
import { VixSrc } from './VixSrc';
const ctx = createTestContext();
describe('VixSrc', () => {
let handler: VixSrc;
beforeEach(() => {
handler = new VixSrc(new FetcherMock(`${__dirname}/__fixtures__/VixSrc`));
});
test('handle imdb black mirror s4e2', async () => {
const streams = await handler.handle(ctx, 'series', new ImdbId('tt2085059', 4, 2));
expect(streams).toMatchSnapshot();
});
test('handle imdb full metal jacket', async () => {
const streams = await handler.handle(ctx, 'series', new ImdbId('tt0093058', undefined, undefined));
expect(streams).toMatchSnapshot();
});
});