Skip to content

Commit

Permalink
fix: ensure camaro#ready is called
Browse files Browse the repository at this point in the history
  • Loading branch information
SukkaW authored Apr 28, 2020
1 parent d419dd8 commit 0d9410e
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion test/parse.js
Original file line number Diff line number Diff line change
Expand Up @@ -53,7 +53,7 @@ const template = {
};

const detectFeedType = async xml => {
ready();
await ready();
const sample = await transform(xml, {
rss: 'rss/channel/title',
atom: 'feed/title'
Expand All @@ -65,6 +65,7 @@ const detectFeedType = async xml => {
};

const parseFeed = async xml => {
await ready();
const type = await detectFeedType(xml);
const output = await transform(xml, template[type]);
return output;
Expand Down

0 comments on commit 0d9410e

Please sign in to comment.