Skip to content

Commit

Permalink
Test
Browse files Browse the repository at this point in the history
  • Loading branch information
kodster28 committed Aug 30, 2023
1 parent 8f8dae0 commit bc46a06
Showing 1 changed file with 7 additions and 11 deletions.
18 changes: 7 additions & 11 deletions bin/accessibility-check.js
Original file line number Diff line number Diff line change
Expand Up @@ -7,17 +7,13 @@ process.on('warning', e => console.warn(e.stack));
const sitemapUrl = 'https://developers.cloudflare.com/sitemap.xml';
const urlsToProcess = []; // Array to store URLs for processing

async function processUrlBatch(urls) {
const promises = urls.map(async (url) => {
try {
const results = await pa11y(url);
console.log(results);
} catch (error) {
console.log("error");
}
});

await Promise.all(promises);
async function processUrl(url) {
try {
const results = await pa11y(url);
console.log(results);
} catch (error) {
console.log("error");
}
}

axios.get(sitemapUrl)
Expand Down

0 comments on commit bc46a06

Please sign in to comment.