fix(core): update
This commit is contained in:
@ -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();
|
||||
|
Reference in New Issue
Block a user