replace whitelist by allowlist in parser-tests (#11727)

This commit is contained in:
Huáng Jùnliàng
2020-06-17 15:32:46 -04:00
committed by GitHub
parent fd3c76941e
commit e498bee10f
8 changed files with 38 additions and 38 deletions

View File

@@ -89,8 +89,8 @@ async function* loadTests(root) {
const runner = new TestRunner({
testDir: path.join(__dirname, "../../../build/flow/src/parser/test/flow"),
whitelist: path.join(__dirname, "whitelist.txt"),
shouldUpdate: process.argv.includes("--update-whitelist"),
allowlist: path.join(__dirname, "allowlist.txt"),
shouldUpdate: process.argv.includes("--update-allowlist"),
async *getTests() {
for await (const test of loadTests(this.testDir)) {