fix(core): update

This commit is contained in:
2020-10-26 00:52:04 +00:00
parent 1296253614
commit cd1e582f88
6 changed files with 107 additions and 13 deletions

View File

@ -8,4 +8,11 @@ tap.test('should create an instance of Smartsitemap', async () => {
expect(testSmartsitemap).to.be.instanceOf(smartsitemap.SmartSitemap);
});
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();
console.log(sitemapString);
});
tap.start();