fix(core): update
This commit is contained in:
@ -9,13 +9,13 @@ tap.test('should create an instance of Smartsitemap', async () => {
|
||||
});
|
||||
|
||||
tap.test('should create a sitemap from feed', async () => {
|
||||
const sitemapString = await testSmartsitemap.createSitemapNewsFromFeedUrl('https://www.theverge.com/rss/index.xml');
|
||||
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://www.theverge.com/sitemaps');
|
||||
console.log(result.sitemapindex.sitemap);
|
||||
const result = await testSmartsitemap.parseSitemapUrl('https://central.eu/sitemap-news');
|
||||
console.log(result.urlset.url);
|
||||
})
|
||||
|
||||
tap.start();
|
||||
|
Reference in New Issue
Block a user