chore: update README for clarity and formatting improvements
fix: update test imports to use new package path refactor: improve feed class structure and formatting refactor: enhance smartfeed class for better readability chore: streamline plugin exports for consistency chore: update TypeScript configuration for improved compatibility ci: add workflows for handling tag and non-tag pushes
This commit is contained in:
@@ -1,4 +1,4 @@
|
||||
import { expect, tap } from '@pushrocks/tapbundle';
|
||||
import { expect, tap } from '@git.zone/tstest/tapbundle';
|
||||
import * as smartfeed from '../ts/index';
|
||||
|
||||
let testSmartFeed: smartfeed.Smartfeed;
|
||||
@@ -24,7 +24,7 @@ tap.test('should create a feed', async () => {
|
||||
imageUrl: 'https://central.eu/someimage.png',
|
||||
timestamp: Date.now(),
|
||||
url: 'https://central.eu/article/somearticle',
|
||||
content: 'somecontent'
|
||||
content: 'somecontent',
|
||||
});
|
||||
const rssFeed = feed.exportRssFeedString();
|
||||
console.log(rssFeed);
|
||||
@@ -33,7 +33,9 @@ tap.test('should create a feed', async () => {
|
||||
});
|
||||
|
||||
tap.test('should parse a Url', async () => {
|
||||
const result = await testSmartFeed.parseFeedFromUrl('https://www.theverge.com/rss/index.xml');
|
||||
const result = await testSmartFeed.parseFeedFromUrl(
|
||||
'https://www.theverge.com/rss/index.xml',
|
||||
);
|
||||
// console.log(result);
|
||||
});
|
||||
|
||||
|
||||
Reference in New Issue
Block a user