fix(core): update

This commit is contained in:
2023-07-27 16:16:37 +02:00
parent 38d1d4ae0c
commit 8909652860
17 changed files with 4931 additions and 18520 deletions

View File

@ -1,4 +1,4 @@
import { expect, tap } from '@pushrocks/tapbundle';
import { expect, tap } from '@push.rocks/tapbundle';
import * as smartsitemap from '../ts/index.js';
let testSmartsitemap: smartsitemap.SmartSitemap;
@ -9,13 +9,15 @@ tap.test('should create an instance of Smartsitemap', async () => {
});
tap.test('should create a sitemap from feed', async () => {
const sitemapString = await testSmartsitemap.createSitemapNewsFromFeedUrl('https://central.eu/feed');
const sitemapString = await testSmartsitemap.createSitemapNewsFromFeedUrl(
'https://central.eu/feed'
);
console.log(sitemapString);
});
tap.test('should parse a sitemap', async () => {
const result = await testSmartsitemap.parseSitemapUrl('https://central.eu/sitemap-news');
console.log(result.urlset.url);
})
const result = await testSmartsitemap.parseSitemapUrl('https://www.theverge.com/sitemaps/google_news');
// console.log(result.urlset.url);
});
tap.start();