webstreamr-github/src/extractor/StreamUp.test.ts
GSTAR baf5c9143d
feat(extractor): add StreamUP (#621)
Co-authored-by: WebStreamr <210764791+webstreamr@users.noreply.github.com>
2026-01-10 06:39:19 +00:00

16 lines
688 B
TypeScript

import winston from 'winston';
import { createTestContext } from '../test';
import { FetcherMock } from '../utils';
import { ExtractorRegistry } from './ExtractorRegistry';
import { StreamUp } from './StreamUp';
const logger = winston.createLogger({ transports: [new winston.transports.Console({ level: 'nope' })] });
const extractorRegistry = new ExtractorRegistry(logger, [new StreamUp(new FetcherMock(`${__dirname}/__fixtures__/StreamUp`))]);
const ctx = createTestContext();
describe('StreamUp', () => {
test('handle one battle after another', async () => {
expect(await extractorRegistry.handle(ctx, new URL('https://strmup.to/6950ae79eaa4c'))).toMatchSnapshot();
});
});