export interface NewsItem {
    title : string;
    content : string;
    //source: string;
    publishedAt : Date;
}

export function getTestNews (): NewsItem[] {
    console.warn("Remove getTestNews from production! Only for tests!");

    return [
        {
            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()
        },
        {
            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()
        },
        {
            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()
        },
        {
            title: "News Item 3",
            content: "News item 3 brings you the latest updates. Stay informed with our regular news feed.",
            publishedAt: new Date()
        },
        {
            title: "News Item 4",
            content: "Content for the fourth news item. This is part of the test data for the application.",
            publishedAt: new Date()
        },
        {
            title: "News Item 5",
            content: "Fifth news item in the list. More sample content to populate the news array.",
            publishedAt: new Date()
        },
        {
            title: "News Item 6",
            content: "This is news item number six. Continuing to add test data for the news feature.",
            publishedAt: new Date()
        },
        {
            title: "News Item 7",
            content: "Seventh item in the news feed. Sample text to ensure the array has sufficient data.",
            publishedAt: new Date()
        },
        {
            title: "News Item 8",
            content: "News item eight provides more content. This helps in testing the display of multiple items.",
            publishedAt: new Date()
        },
        {
            title: "News Item 9",
            content: "The ninth news item. Almost reaching the total of 13 items including the original.",
            publishedAt: new Date()
        },
        {
            title: "News Item 10",
            content: "Tenth item in the array. This completes the set of additional news items requested.",
            publishedAt: new Date()
        },
        {
            title: "News Item 11",
            content: "Eleventh news item. Continuing to add variety to the test data.",
            publishedAt: new Date()
        },
        {
            title: "News Item 12",
            content: "The twelfth and final news item. This brings the total to 13 items in the array.",
            publishedAt: new Date()
        }
    ];
}