src/app/legacy/containers/CpsRecommendations/RecommendationsPromo/fixture.ts

Summary

Maintainability
A
3 hrs
Test Coverage
A
100%
import {
  CpsRecommendation,
  OptimoRecommendation,
} from '../../../../models/types/onwardJourney';

export const cpsRecommendation: CpsRecommendation = {
  headlines: {
    shortHeadline: 'Meet boys who dey convert cassava to electricity',
    headline: 'Meet boys who dey convert cassava to electricity',
  },
  locators: {
    assetUri: '/pidgin/44508901',
    cpsUrn: 'urn:bbc:content:assetUri:/pidgin/44508901',
  },
  summary:
    "James den Kwesi Ansah want convert most of Ghana's cassava waste into cheap electricity supply for schools, hospitals den villages.",
  timestamp: 1529397290,
  cpsType: 'MAP',
  indexImage: {
    id: '102105505',
    subType: 'index',
    href: 'http://c.files.bbci.co.uk/C576/production/_102105505_p06bhwsd.jpg',
    path: '/cpsprodpb/C576/production/_102105505_p06bhwsd.jpg',
    height: 549,
    width: 976,
    altText: 'Kwesi and James dey check radio',
    caption:
      'James Ansah den Kwesi Ansah dey experiment plus dema electricity inovation from cassava',
    copyrightHolder: 'BBC',
    type: 'image',
  },
  id: 'urn:bbc:ares::asset:pidgin/44508901',
  type: 'cps',
};

export const optimoRecommendation: OptimoRecommendation = {
  locators: {
    optimoUrn: 'urn:bbc:optimo:asset:crg7rvwrxdlo',
    canonicalUrl: 'https://www.bbc.com/turkce/articles/crg7rvwrxdlo',
  },
  timestamp: 1660891088144,
  suitableForSyndication: true,
  language: 'tr',
  headlines: {
    seoHeadline:
      'Merkez Bankası faiz kararı: Politika faizi neden indirildi, enflasyonu düşürmek için ne yapmalı?',
    promoHeadline: {
      blocks: [
        {
          type: 'text',
          model: {
            blocks: [
              {
                type: 'paragraph',
                model: {
                  text: 'Merkez Bankası politika faizini neden indirdi, enflasyonu düşürmek için ne yapmalı?',
                  blocks: [
                    {
                      type: 'fragment',
                      model: {
                        text: 'Merkez Bankası politika faizini neden indirdi, enflasyonu düşürmek için ne yapmalı?',
                        attributes: [],
                      },
                    },
                  ],
                },
              },
            ],
          },
        },
      ],
    },
  },
  images: {
    defaultPromoImage: {
      blocks: [
        {
          type: 'altText',
          model: {
            blocks: [
              {
                type: 'text',
                model: {
                  blocks: [
                    {
                      type: 'paragraph',
                      model: {
                        text: 'dolar TL ',
                        blocks: [
                          {
                            type: 'fragment',
                            model: { text: 'dolar TL ', attributes: [] },
                          },
                        ],
                      },
                    },
                  ],
                },
              },
            ],
          },
        },
        {
          type: 'rawImage',
          model: {
            width: 1023,
            height: 575,
            locator: '98dd/live/59717db0-1f53-11ed-aa9d-57accb179502.jpg',
            originCode: 'cpsprodpb',
            copyrightHolder: 'Getty Images',
            suitableForSyndication: true,
          },
        },
      ],
    },
  },
  summary: {
    blocks: [
      {
        type: 'text',
        model: {
          blocks: [
            {
              type: 'paragraph',
              model: {
                text: "Kredi faizleri artıp TL, Dolar karşısında değer kaybetmeyi sürdürürken Merkez Bankası dün politika faizini 100 baz puanlık indirimle yüzde 13'e düşürdü. Peki TCMB faizi neden düşürüyor? İzlenilen 'enflasyonla büyüme' politikasının Türkiye'ye faturası ne oluyor? Prof. Dr. Selva Demiralp'in analizi",
                blocks: [
                  {
                    type: 'fragment',
                    model: {
                      text: "Kredi faizleri artıp TL, Dolar karşısında değer kaybetmeyi sürdürürken Merkez Bankası dün politika faizini 100 baz puanlık indirimle yüzde 13'e düşürdü. Peki TCMB faizi neden düşürüyor? İzlenilen 'enflasyonla büyüme' politikasının Türkiye'ye faturası ne oluyor? Prof. Dr. Selva Demiralp'in analizi",
                      attributes: [],
                    },
                  },
                ],
              },
            },
          ],
        },
      },
    ],
  },
  passport: {
    language: 'tr',
    home: 'http://www.bbc.co.uk/ontologies/passport/home/Turkce',
    locator: 'urn:bbc:optimo:asset:crg7rvwrxdlo',
    availability: 'AVAILABLE',
    taggings: [
      {
        predicate: 'http://www.bbc.co.uk/ontologies/bbc/assetType',
        value:
          'http://www.bbc.co.uk/things/22ea958e-2004-4f34-80a7-bf5acad52f6f#id',
      },
      {
        predicate: 'http://www.bbc.co.uk/ontologies/creativework/about',
        value:
          'http://www.bbc.co.uk/things/06381136-9dc0-430f-bf48-b20106f0b18f#id',
      },
      {
        predicate: 'http://www.bbc.co.uk/ontologies/creativework/about',
        value:
          'http://www.bbc.co.uk/things/066edbdf-d295-42ce-9df2-caf00eefb307#id',
      },
      {
        predicate: 'http://www.bbc.co.uk/ontologies/audience/motivation',
        value:
          'http://www.bbc.co.uk/things/b1a660eb-ef14-4645-b4cd-d7bd939ce443#id',
      },
      {
        predicate: 'http://www.bbc.co.uk/ontologies/creativework/about',
        value:
          'http://www.bbc.co.uk/things/ca170ae3-99c1-48db-9b67-2866f85e7342#id',
      },
      {
        predicate: 'http://www.bbc.co.uk/ontologies/audience/motivation',
        value:
          'http://www.bbc.co.uk/things/7047e74c-b9ae-4c02-a4a8-748df451ac58#id',
      },
      {
        predicate: 'http://www.bbc.co.uk/ontologies/creativework/format',
        value:
          'http://www.bbc.co.uk/things/46c0517d-9927-4d1a-9954-8c63a3f7a888#id',
      },
      {
        predicate: 'http://www.bbc.co.uk/ontologies/creativework/about',
        value:
          'http://www.bbc.co.uk/things/a30418d5-3efe-415d-b2d2-1480eaf2eb4a#id',
      },
      {
        predicate: 'http://www.bbc.co.uk/ontologies/bbc/infoClass',
        value:
          'http://www.bbc.co.uk/things/0db2b959-cbf8-4661-965f-050974a69bb5#id',
      },
      {
        predicate: 'http://www.bbc.co.uk/ontologies/audience/motivation',
        value:
          'http://www.bbc.co.uk/things/bf928ac3-b3bd-4d47-924e-cca1bdc29174#id',
      },
    ],
    schemaVersion: '1.4.0',
    publishedState: 'PUBLISHED',
    predicates: {
      assetType: [
        {
          value:
            'http://www.bbc.co.uk/things/22ea958e-2004-4f34-80a7-bf5acad52f6f#id',
          type: 'assetType',
        },
      ],
      motivation: [],
      infoClass: [
        {
          value:
            'http://www.bbc.co.uk/things/0db2b959-cbf8-4661-965f-050974a69bb5#id',
          type: 'infoClass',
        },
      ],
      formats: [
        {
          value:
            'http://www.bbc.co.uk/things/46c0517d-9927-4d1a-9954-8c63a3f7a888#id',
          thingLabel: 'News report',
          thingUri:
            'http://www.bbc.co.uk/things/46c0517d-9927-4d1a-9954-8c63a3f7a888#id',
          thingId: '46c0517d-9927-4d1a-9954-8c63a3f7a888',
          thingType: ['tagging:TagConcept', 'tagging:Format'],
          thingSameAs: [],
          thingEnglishLabel: 'Report',
          thingPreferredLabel: 'Report',
          thingLabelLanguage: 'tr',
          type: 'formats',
        },
      ],
      about: [
        {
          value:
            'http://www.bbc.co.uk/things/06381136-9dc0-430f-bf48-b20106f0b18f#id',
          thingLabel: 'Lira',
          thingUri:
            'http://www.bbc.co.uk/things/06381136-9dc0-430f-bf48-b20106f0b18f#id',
          thingId: '06381136-9dc0-430f-bf48-b20106f0b18f',
          thingType: ['tagging:TagConcept', 'core:Theme', 'core:Thing'],
          thingSameAs: [
            'http://www.wikidata.org/entity/Q172872',
            'http://dbpedia.org/resource/Turkish_lira',
          ],
          thingEnglishLabel: 'Turkish Lira (TRY)',
          type: 'about',
        },
        {
          value:
            'http://www.bbc.co.uk/things/066edbdf-d295-42ce-9df2-caf00eefb307#id',
          thingLabel: 'Türkiye ekonomisi',
          thingUri:
            'http://www.bbc.co.uk/things/066edbdf-d295-42ce-9df2-caf00eefb307#id',
          thingId: '066edbdf-d295-42ce-9df2-caf00eefb307',
          thingType: ['core:Theme', 'core:Thing', 'tagging:TagConcept'],
          thingSameAs: [
            'http://www.wikidata.org/entity/Q431095',
            'http://dbpedia.org/resource/Economy_of_Turkey',
          ],
          thingEnglishLabel: 'Economy of Turkey',
          type: 'about',
        },
        {
          value:
            'http://www.bbc.co.uk/things/a30418d5-3efe-415d-b2d2-1480eaf2eb4a#id',
          thingLabel: 'Türkiye',
          thingUri:
            'http://www.bbc.co.uk/things/a30418d5-3efe-415d-b2d2-1480eaf2eb4a#id',
          thingId: 'a30418d5-3efe-415d-b2d2-1480eaf2eb4a',
          thingType: ['tagging:TagConcept', 'core:Place', 'core:Thing'],
          thingSameAs: ['http://sws.geonames.org/298795/'],
          thingEnglishLabel: 'Turkey',
          type: 'about',
        },
        {
          value:
            'http://www.bbc.co.uk/things/ca170ae3-99c1-48db-9b67-2866f85e7342#id',
          thingLabel: 'Ekonomi',
          thingUri:
            'http://www.bbc.co.uk/things/ca170ae3-99c1-48db-9b67-2866f85e7342#id',
          thingId: 'ca170ae3-99c1-48db-9b67-2866f85e7342',
          thingType: ['core:Theme', 'core:Thing', 'tagging:TagConcept'],
          thingSameAs: ['http://dbpedia.org/resource/Economy'],
          thingEnglishLabel: 'Economics',
          type: 'about',
        },
      ],
    },
  },
  id: 'urn:bbc:ares::article:crg7rvwrxdlo',
  type: 'optimo',
};