fix(core): update
This commit is contained in:
4
test/sitemap.yml
Normal file
4
test/sitemap.yml
Normal file
@ -0,0 +1,4 @@
|
||||
daily:
|
||||
- central.eu/
|
||||
- central.eu/privacy
|
||||
- central.eu/someotherlink
|
@ -9,9 +9,7 @@ tap.test('should create an instance of Smartsitemap', async () => {
|
||||
});
|
||||
|
||||
tap.test('should create a sitemap from feed', async () => {
|
||||
const sitemapNews = testSmartsitemap.createSmartsitemapNews();
|
||||
await sitemapNews.readFromRssFeed('https://www.theverge.com/rss/index.xml');
|
||||
const sitemapString = sitemapNews.exportSitemapXml();
|
||||
const sitemapString = await testSmartsitemap.createSitemapNewsFromFeedUrl('https://www.theverge.com/rss/index.xml');
|
||||
console.log(sitemapString);
|
||||
});
|
||||
|
||||
|
Reference in New Issue
Block a user