Permalink
Browse files

New: Add category `pitfalls`

Co-authored-by: sarvaje <dgarcia@plainconcepts.com>
  • Loading branch information...
2 people authored and molant committed Feb 6, 2019
1 parent f03ba84 commit fac28bc0bec87a81472f6810ef6764d2ab16a069
@@ -0,0 +1,7 @@
<svg data-name="Layer 1" xmlns="http://www.w3.org/2000/svg" viewBox="0 0 72 72">
<path fill="#acadda" d="M15.94 9.459l12.989-3.68 7.224 25.496-12.989 3.68zM23.752 37.028l14.672-4.157a8.5 8.5 0 0 1 10.495 5.86l-22.85 6.475-2.317-8.178z"/>
<path d="M60.86 50H61l3.76-.87a.54.54 0 0 0 .41-.39.6.6 0 0 0-.17-.54l-2.6-2.81a.56.56 0 0 0-.42-.18h-.13a.58.58 0 0 0-.41.39l-1.13 3.68a.57.57 0 0 0 .13.56.56.56 0 0 0 .42.16zM55.55 51.22h.13l3.75-.86a.59.59 0 0 0 .42-.39.57.57 0 0 0-.13-.56l-2.63-2.82a.6.6 0 0 0-.42-.18h-.12a.56.56 0 0 0-.42.39L55 50.48a.56.56 0 0 0 .13.55.57.57 0 0 0 .42.19zM50.24 52.39h.13l3.75-.87a.56.56 0 0 0 .42-.39.58.58 0 0 0-.13-.56l-2.63-2.81a.56.56 0 0 0-.42-.18h-.13a.59.59 0 0 0-.41.39l-1.13 3.68a.57.57 0 0 0 .13.56.56.56 0 0 0 .42.18zM44.94 53.63h.13l3.75-.87a.57.57 0 0 0 .29-.94L46.49 49a.58.58 0 0 0-.42-.18h-.13a.59.59 0 0 0-.42.39l-1.13 3.69a.58.58 0 0 0 .13.55.57.57 0 0 0 .42.18zM39.63 54.79h.13l3.75-.87a.59.59 0 0 0 .42-.39.57.57 0 0 0-.13-.53l-2.63-2.81a.56.56 0 0 0-.42-.18h-.12a.57.57 0 0 0-.42.39l-1.13 3.68a.57.57 0 0 0 .13.56.56.56 0 0 0 .42.15z" fill="#2d28a1"/>
<path fill="#2d28a1" d="M66.102 52.574l-28.93 6.678-1.052-4.56 28.93-6.679zM11.14 50H11l-3.76-.87a.54.54 0 0 1-.41-.39.6.6 0 0 1 .17-.54l2.6-2.81a.56.56 0 0 1 .42-.18h.13a.58.58 0 0 1 .41.39l1.13 3.68a.57.57 0 0 1-.13.56.56.56 0 0 1-.42.16zM16.45 51.22h-.13l-3.75-.86a.59.59 0 0 1-.42-.39.57.57 0 0 1 .13-.56l2.63-2.82a.6.6 0 0 1 .42-.18h.12a.56.56 0 0 1 .42.39L17 50.48a.56.56 0 0 1-.13.55.57.57 0 0 1-.42.19zM21.76 52.39h-.13l-3.75-.87a.56.56 0 0 1-.42-.39.58.58 0 0 1 .13-.56l2.63-2.81a.56.56 0 0 1 .42-.18h.13a.59.59 0 0 1 .41.39l1.13 3.68a.57.57 0 0 1-.13.56.56.56 0 0 1-.42.18zM27.06 53.63h-.13l-3.75-.87a.57.57 0 0 1-.29-.94L25.51 49a.58.58 0 0 1 .42-.18h.13a.59.59 0 0 1 .42.39l1.13 3.69a.58.58 0 0 1-.13.55.57.57 0 0 1-.42.18zM32.37 54.79h-.13l-3.75-.87a.59.59 0 0 1-.42-.39.57.57 0 0 1 .13-.53l2.63-2.81a.56.56 0 0 1 .42-.18h.12a.57.57 0 0 1 .42.39l1.13 3.68a.57.57 0 0 1-.13.56.56.56 0 0 1-.42.15z"/>
<path fill="#2d28a1" d="M6.947 48.014l28.93 6.679-1.053 4.56-28.93-6.679z"/>
<circle cx="36.12" cy="56.6" r="2.64" fill="#acadda" stroke="#2d28a1" stroke-linecap="round" stroke-linejoin="round" stroke-width="2"/>
</svg>
@@ -2,6 +2,7 @@
"accessibility": "/images/scan/accessibility.svg",
"compatibility": "/images/scan/compatibility.svg",
"performance": "/images/scan/performance.svg",
"pitfalls": "/images/scan/pitfalls_icon.svg",
"pwa": "/images/scan/pwa.svg",
"security": "/images/scan/security.svg",
"development": "/images/scan/dev-icon.svg",
@@ -49,7 +49,7 @@ test(`HTML formatter returns the right object`, async (t) => {

t.plan((result.categories.length * 2) + 2);

t.is(result.categories.length, 7);
t.is(result.categories.length, 8);
t.is(result.hintsCount, 0);

result.categories.forEach((cat) => {
@@ -66,7 +66,7 @@ test(`HTML formatter returns the right number of erros and warnings`, async (t)

t.plan(13);

t.is(result.categories.length, 7);
t.is(result.categories.length, 8);
t.is(result.hintsCount, 5);

const otherCategory = result.getCategoryByName(Category.other);
@@ -99,7 +99,7 @@ test(`HTML formatter returns the right number of erros and warnings`, async (t)

result.removeCategory(Category.development);

t.is(result.categories.length, 6);
t.is(result.categories.length, 7);
t.is(result.hintsCount, 4);
});

@@ -6,5 +6,6 @@ export enum Category {
other = 'other',
pwa = 'pwa',
performance = 'performance',
pitfalls = 'pitfalls',
security = 'security'
}

0 comments on commit fac28bc

Please sign in to comment.