fix(core): update

This commit is contained in:
2020-10-26 12:18:33 +00:00
parent 850f20fc38
commit b6abfd11d2
9 changed files with 132 additions and 64 deletions

4
test/sitemap.yml Normal file
View File

@ -0,0 +1,4 @@
daily:
- central.eu/
- central.eu/privacy
- central.eu/someotherlink

View File

@ -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);
});