From e19a521c4ecd425f8e44944df385223db1c28360 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Ga=C3=ABl=20M=C3=A9tais?= Date: Tue, 11 Aug 2020 03:01:43 +0200 Subject: [PATCH] Various adaptations for Phantomas v2 --- lib/metadata/policies.js | 18 ++++++----- lib/tools/phantomas/phantomasWrapper.js | 25 ++------------- test/core/colorDiffTest.js | 22 ++++++------- test/core/customPoliciesTest.js | 42 ++++++++++++++++++++++--- 4 files changed, 60 insertions(+), 47 deletions(-) diff --git a/lib/metadata/policies.js b/lib/metadata/policies.js index 1239547..0614ec6 100644 --- a/lib/metadata/policies.js +++ b/lib/metadata/policies.js @@ -312,7 +312,7 @@ var policies = { list: offenders.map(function(offender) { if (offender === '[inline CSS]') { return { - error: 'Empty style tag', + error: 'Empty