fix(core): update
This commit is contained in:
21
test/test.ts
21
test/test.ts
@ -8,4 +8,25 @@ tap.test('should create a feedVersion', async () => {
|
||||
expect(testSmartFeed).to.be.instanceOf(smartfeed.Smartfeed);
|
||||
});
|
||||
|
||||
tap.test('should create a feed', async () => {
|
||||
const feed = testSmartFeed.createFeed({
|
||||
domain: 'central.eu',
|
||||
title: 'central.eu - ideas for Europe',
|
||||
category: 'Politics',
|
||||
company: 'Lossless GmbH',
|
||||
companyDomain: 'https://lossless.com',
|
||||
companyEmail: 'hello@lossless.com',
|
||||
description: 'ideas for Europe',
|
||||
});
|
||||
feed.addItem({
|
||||
title: 'A better European Union',
|
||||
authorName: 'Phil',
|
||||
imageUrl: 'https://central.eu/someimage.png',
|
||||
timestamp: Date.now(),
|
||||
url: 'https://central.eu/article/somearticle'
|
||||
});
|
||||
const rssFeed = feed.exportRssFeedString();
|
||||
console.log(rssFeed);
|
||||
});
|
||||
|
||||
tap.start();
|
||||
|
Reference in New Issue
Block a user