Skip to content

Commit

Permalink
fix: use camaro#ready for initialization
Browse files Browse the repository at this point in the history
  • Loading branch information
SukkaW committed Apr 29, 2020
1 parent c44a3fb commit 7bf6ef1
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion test/index.js
Expand Up @@ -4,9 +4,10 @@ require('chai').should();
const Hexo = require('hexo');
const cheerio = require('cheerio');
const { encodeURL } = require('hexo-util');
const { transform } = require('camaro');
const { ready, transform } = require('camaro');

const p = async xml => {
await ready();
const output = await transform(xml, {
items: ['//url', {
link: 'loc',
Expand Down

0 comments on commit 7bf6ef1

Please sign in to comment.