unpkg/modules/__tests__/utils/withBlacklist.js

8 lines
196 B
JavaScript

const BlacklistAPI = require("../../BlacklistAPI");
function withBlacklist(blacklist, done) {
Promise.all(blacklist.map(BlacklistAPI.addPackage)).then(done);
}
module.exports = withBlacklist;