Skip to content

armgit / mocha

Public Imported from GitHub
0

☕️ Classic, reliable, trusted test framework for Node.js and the browser

Use blocklist instead blacklist (#4355)

JeongHoon Byun (aka Outsider)2fe4d1ab98b3
diff --git a/docs/_data/blacklist.json b/docs/_data/blocklist.json
similarity index 88%
rename from docs/_data/blacklist.json
rename to docs/_data/blocklist.json
index 3949526a..12a17186 100644
--- a/docs/_data/blacklist.json
+++ b/docs/_data/blocklist.json
@@ -17,5 +17,7 @@
"trust-my-paper",
"seowebsitetraffic-net",
"pfannen-test",
+ "casinobosscanada-com",
+ "suominettikasinot24",
"mochajs"
]
diff --git a/docs/_data/supporters.js b/docs/_data/supporters.js
index 589dfa73..8e273d9b 100644
--- a/docs/_data/supporters.js
+++ b/docs/_data/supporters.js
@@ -7,7 +7,7 @@ const {resolve} = require('path');
const debug = require('debug')('mocha:docs:data:supporters');
const needle = require('needle');
const imageSize = require('image-size');
-const blacklist = new Set(require('./blacklist.json'));
+const blocklist = new Set(require('./blocklist.json'));
const API_ENDPOINT = 'https://api.opencollective.com/graphql/v2';
@@ -91,7 +91,7 @@ module.exports = async () => {
const supporters = orders
.map(nodeToSupporter)
- .filter(supporter => !blacklist.has(supporter.slug))
+ .filter(supporter => !blocklist.has(supporter.slug))
.reduce((supporters, supporter) => {
if (uniqueSupporters.has(supporter.slug)) {
// aggregate donation totals