Replace non-inclusive "whitelist" and "blacklist" terms with "allowlist" etc. (#11758)

This commit is contained in:
Wojciech Maj
2020-06-29 21:39:38 +02:00
committed by GitHub
parent cfaa70dcf4
commit 1dd94e813e
6 changed files with 20 additions and 20 deletions

View File

@@ -733,13 +733,13 @@ describe("api", function () {
expect(script).toEqual(expect.stringContaining("inherits"));
});
it("whitelist", function () {
it("allowlist", function () {
const script = babel.buildExternalHelpers(["inherits"]);
expect(script).not.toEqual(expect.stringContaining("classCallCheck"));
expect(script).toEqual(expect.stringContaining("inherits"));
});
it("empty whitelist", function () {
it("empty allowlist", function () {
const script = babel.buildExternalHelpers([]);
expect(script).not.toEqual(expect.stringContaining("classCallCheck"));
expect(script).not.toEqual(expect.stringContaining("inherits"));