unpkg/server/__tests__/utils/withBlacklist.js

8 lines
208 B
JavaScript
Raw Normal View History

2017-11-11 20:18:13 +00:00
const BlacklistAPI = require('../../BlacklistAPI')
function withBlacklist(blacklist, callback) {
return Promise.all(blacklist.map(BlacklistAPI.addPackage)).then(callback)
}
module.exports = withBlacklist