203 lines
6.2 KiB
TypeScript
203 lines
6.2 KiB
TypeScript
import { NewsItem } from "../../api/models/news";
|
|
|
|
export function getTestNews (): NewsItem[] {
|
|
console.warn("Remove getTestNews from production! Only for tests!");
|
|
|
|
return [
|
|
{
|
|
id: "0",
|
|
title: "Lorem Ispum",
|
|
content: "Lorem Ipsum dolor sit amet, consectetur adipiscing elit. Lorem ipsum dolor sit amet, consectetur adipiscing elit. Lorem ipsum dolor sit amet, consectetur adipiscing elit. Lorem ipsum dolor sit amet, consectetur adipiscing elit. Lorem ipsum dolor sit amet,",
|
|
publishedAt: new Date(),
|
|
source: {
|
|
name: "Test Destination",
|
|
type: "system",
|
|
},
|
|
looked: 1,
|
|
comments: 0,
|
|
likes: 1,
|
|
isAdult: false,
|
|
isLiked: true,
|
|
},
|
|
{
|
|
id: "1",
|
|
title: "News Item 1",
|
|
content: "This is the content for news item 1. It contains some sample text to demonstrate the news functionality.",
|
|
publishedAt: new Date(),
|
|
source: {
|
|
name: "Test Destination",
|
|
type: "system",
|
|
},
|
|
looked: 1,
|
|
comments: 0,
|
|
likes: 0,
|
|
isAdult: false,
|
|
isLiked: false,
|
|
},
|
|
{
|
|
id: '2',
|
|
title: "News Item 2",
|
|
content: "This is the content for news item 2. Another piece of sample news content for testing purposes.",
|
|
publishedAt: new Date(),
|
|
source: {
|
|
name: "Test Destination",
|
|
type: "system",
|
|
},
|
|
looked: 1,
|
|
comments: 0,
|
|
likes: 0,
|
|
isAdult: false,
|
|
isLiked: false,
|
|
},
|
|
{
|
|
id: '3',
|
|
title: "News Item 3",
|
|
content: "News item 3 brings you the latest updates. Stay informed with our regular news feed.",
|
|
publishedAt: new Date(),
|
|
source: {
|
|
name: "Test Destination",
|
|
type: "system",
|
|
},
|
|
looked: 1,
|
|
comments: 0,
|
|
likes: 0,
|
|
isAdult: false,
|
|
isLiked: false,
|
|
},
|
|
{
|
|
id: '4',
|
|
title: "News Item 4",
|
|
content: "Content for the fourth news item. This is part of the test data for the application.",
|
|
publishedAt: new Date(),
|
|
source: {
|
|
name: "Test Destination",
|
|
type: "system",
|
|
},
|
|
looked: 1,
|
|
comments: 0,
|
|
likes: 0,
|
|
isAdult: false,
|
|
isLiked: false,
|
|
},
|
|
{
|
|
id: '5',
|
|
title: "News Item 5",
|
|
content: "Fifth news item in the list. More sample content to populate the news array.",
|
|
publishedAt: new Date(),
|
|
source: {
|
|
name: "Test Destination",
|
|
type: "system",
|
|
},
|
|
looked: 1,
|
|
comments: 0,
|
|
likes: 0,
|
|
isAdult: false,
|
|
isLiked: false,
|
|
},
|
|
{
|
|
id: '6',
|
|
title: "News Item 6",
|
|
content: "This is news item number six. Continuing to add test data for the news feature.",
|
|
publishedAt: new Date(),
|
|
source: {
|
|
name: "Test Destination",
|
|
type: "system",
|
|
},
|
|
looked: 1,
|
|
comments: 0,
|
|
likes: 0,
|
|
isAdult: false,
|
|
isLiked: false,
|
|
},
|
|
{
|
|
id: '7',
|
|
title: "News Item 7",
|
|
content: "Seventh item in the news feed. Sample text to ensure the array has sufficient data.",
|
|
publishedAt: new Date(),
|
|
source: {
|
|
name: "Test Destination",
|
|
type: "system",
|
|
},
|
|
looked: 1,
|
|
comments: 0,
|
|
likes: 0,
|
|
isAdult: false,
|
|
isLiked: false,
|
|
},
|
|
{
|
|
id: '8',
|
|
title: "News Item 8",
|
|
content: "News item eight provides more content. This helps in testing the display of multiple items.",
|
|
publishedAt: new Date(),
|
|
source: {
|
|
name: "Test Destination",
|
|
type: "system",
|
|
},
|
|
looked: 1,
|
|
comments: 0,
|
|
likes: 0,
|
|
isAdult: false,
|
|
isLiked: false,
|
|
},
|
|
{
|
|
id: '9',
|
|
title: "News Item 9",
|
|
content: "The ninth news item. Almost reaching the total of 13 items including the original.",
|
|
publishedAt: new Date(),
|
|
source: {
|
|
name: "Test Destination",
|
|
type: "system",
|
|
},
|
|
looked: 1,
|
|
comments: 0,
|
|
likes: 0,
|
|
isAdult: false,
|
|
isLiked: false,
|
|
},
|
|
{
|
|
id: '10',
|
|
title: "News Item 10",
|
|
content: "Tenth item in the array. This completes the set of additional news items requested.",
|
|
publishedAt: new Date(),
|
|
source: {
|
|
name: "Test Destination",
|
|
type: "system",
|
|
},
|
|
looked: 1,
|
|
comments: 0,
|
|
likes: 0,
|
|
isAdult: false,
|
|
isLiked: false,
|
|
},
|
|
{
|
|
id: '11',
|
|
title: "News Item 11",
|
|
content: "Eleventh news item. Continuing to add variety to the test data.",
|
|
publishedAt: new Date(),
|
|
source: {
|
|
name: "Test Destination",
|
|
type: "system",
|
|
},
|
|
looked: 1,
|
|
comments: 0,
|
|
likes: 0,
|
|
isAdult: false,
|
|
isLiked: false,
|
|
},
|
|
{
|
|
id: '12',
|
|
title: "News Item 12",
|
|
content: "The twelfth and final news item. This brings the total to 13 items in the array.",
|
|
publishedAt: new Date(),
|
|
source: {
|
|
name: "Test Destination",
|
|
type: "system",
|
|
},
|
|
looked: 1,
|
|
comments: 0,
|
|
likes: 0,
|
|
isAdult: false,
|
|
isLiked: false,
|
|
}
|
|
];
|
|
} |