mirror of
https://github.com/4gray/iptvnator.git
synced 2026-10-13 20:56:19 -08:00
refactor(release): keep capture fixture constants in their shared module
This commit is contained in:
1 parent
3112dd6b4c
commit
c5e1c78392
2 files changed
+23
-20
No files matched your search
@@ -16,6 +16,8 @@ import {
|
||||
|
||||
import {
|
||||
M3U_FIXTURE_TITLE,
|
||||
MOCK_FIXTURE_CATEGORIES,
|
||||
STALKER_MOCK_FIXTURE_CATEGORIES,
|
||||
STALKER_FIXTURE_MAC,
|
||||
STALKER_FIXTURE_PORTAL_URL,
|
||||
STALKER_FIXTURE_TITLE,
|
||||
@@ -40,26 +42,6 @@ export {
|
||||
XTREAM_MOCK_ORIGIN,
|
||||
} from './capture-fixtures';
|
||||
|
||||
/**
|
||||
* Synthetic categories that only the marketing fixture generator produces,
|
||||
* per catalog. They must be checked against their OWN endpoint: a series
|
||||
* category can never appear in `get_vod_categories`, and asserting it there
|
||||
* made the reuse path below reject every already-running mock.
|
||||
*/
|
||||
const MOCK_FIXTURE_CATEGORIES: ReadonlyArray<{
|
||||
action: 'get_vod_categories' | 'get_series_categories';
|
||||
name: string;
|
||||
}> = [
|
||||
{ action: 'get_vod_categories', name: 'Action & Mystery' },
|
||||
{ action: 'get_series_categories', name: 'Urban Drama' },
|
||||
];
|
||||
/**
|
||||
* Live categories of the Stalker mock's marketing-demo scenario, from
|
||||
* `MARKETING_LIVE_CATEGORIES` in `@iptvnator/shared/marketing-fixtures`.
|
||||
* Spelled out here because `pnpm release:screenshots` runs tsx without the
|
||||
* base tsconfig, so workspace path aliases do not resolve in this file.
|
||||
*/
|
||||
const STALKER_MOCK_FIXTURE_CATEGORIES = ['Newsroom', 'Culture & Docs'];
|
||||
|
||||
|
||||
/* ------------------------------------------------------------------ */
|
||||
|
||||
@@ -73,3 +73,24 @@ export const AUTO_DETECT_FIXTURE_MESSAGE = [
|
||||
'',
|
||||
'Use these details in any Xtream Codes compatible player.',
|
||||
].join('\n');
|
||||
|
||||
/**
|
||||
* Synthetic categories that only the marketing fixture generator produces,
|
||||
* per catalog. They must be checked against their OWN endpoint: a series
|
||||
* category can never appear in `get_vod_categories`, and asserting it there
|
||||
* made the reuse path below reject every already-running mock.
|
||||
*/
|
||||
export const MOCK_FIXTURE_CATEGORIES: ReadonlyArray<{
|
||||
action: 'get_vod_categories' | 'get_series_categories';
|
||||
name: string;
|
||||
}> = [
|
||||
{ action: 'get_vod_categories', name: 'Action & Mystery' },
|
||||
{ action: 'get_series_categories', name: 'Urban Drama' },
|
||||
];
|
||||
/**
|
||||
* Live categories of the Stalker mock's marketing-demo scenario, from
|
||||
* `MARKETING_LIVE_CATEGORIES` in `@iptvnator/shared/marketing-fixtures`.
|
||||
* Spelled out here because `pnpm release:screenshots` runs tsx without the
|
||||
* base tsconfig, so workspace path aliases do not resolve in this file.
|
||||
*/
|
||||
export const STALKER_MOCK_FIXTURE_CATEGORIES = ['Newsroom', 'Culture & Docs'];
|
||||
Reference in new issue
Block a user