Update test.js to check for sizes and correct sizes (#652)

* Update/Modernize Chai, NPM, Fetch

* Test readme size

* Remove dev check

* Fix file sizes

Mostly fixing readme to match files, but sometimes removing newlines to match readme

* Test improvements

* Fix Samsung Swoop size
This commit is contained in:
Ethan Chapman
2022-04-30 12:46:57 -04:00
committed by GitHub
parent 12da895902
commit ad84b11924
19 changed files with 1385 additions and 415 deletions

View File

@@ -3,4 +3,4 @@ aria-label="Access" role="img"
viewBox="0 0 512 512"><rect
width="512" height="512"
rx="15%"
fill="#155196"/><g fill="#fff"><path d="M194 128a36 36 0 10-39-36c0 6 2 12 4 18l13 180h132l54 126 71-28-11-26-40 15-52-121-123 1-1-23h88v-34h-92z"/><path d="M327 386a133 133 0 01-251-59c0-52 31-99 77-120l3 39a96 96 0 0052 177c49 0 90-37 95-85z"/></g></svg>
fill="#155196"/><g fill="#fff"><path d="M194 128a36 36 0 10-39-36c0 6 2 12 4 18l13 180h132l54 126 71-28-11-26-40 15-52-121-123 1-1-23h88v-34h-92z"/><path d="M327 386a133 133 0 01-251-59c0-52 31-99 77-120l3 39a96 96 0 0052 177c49 0 90-37 95-85z"/></g></svg>

Before

Width:  |  Height:  |  Size: 390 B

After

Width:  |  Height:  |  Size: 389 B

View File

@@ -3,4 +3,4 @@ aria-label="Adobe" role="img"
viewBox="0 0 512 512"><rect
width="512" height="512"
fill="#ed2224"
rx="15%"/><path fill="#fff" d="M296,120h114v272zm-80,0h-114v272zm39,99-48,118h52l23,55h46z"/></svg>
rx="15%"/><path fill="#fff" d="M296,120h114v272zm-80,0h-114v272zm39,99-48,118h52l23,55h46z"/></svg>

Before

Width:  |  Height:  |  Size: 238 B

After

Width:  |  Height:  |  Size: 237 B

View File

@@ -3,4 +3,4 @@ aria-label="Amazon Alexa" role="img"
viewBox="0 0 512 512"><rect
width="512" height="512"
rx="15%"
fill="#fff"/><path fill="#00caff" d="M256 64a192 192 0 00-26 382v-39c0-11-7-21-17-24a134 134 0 11177-122v1a141 141 0 010 5v1a126 126 0 010 3 130 130 0 010 4v2c-18 108-159 169-160 169a194 194 0 0026 2 192 192 0 000-384"/></svg>
fill="#fff"/><path fill="#00caff" d="M256 64a192 192 0 00-26 382v-39c0-11-7-21-17-24a134 134 0 11177-122v1a141 141 0 010 5v1a126 126 0 010 3 130 130 0 010 4v2c-18 108-159 169-160 169a194 194 0 0026 2 192 192 0 000-384"/></svg>

Before

Width:  |  Height:  |  Size: 366 B

After

Width:  |  Height:  |  Size: 365 B

View File

@@ -3,4 +3,4 @@ aria-label="Amazon Simple Storage Service" role="img"
viewBox="0 0 512 512"><rect
width="512" height="512"
rx="15%"
fill="#fff"/><path fill="#e05243" d="M260 348l-137 33V131l137 32z"/><path fill="#8c3123" d="M256 349l133 32V131l-133 32v186"/><g fill="#e05243"><path id="a" d="M256 64v97l58 14V93zm133 67v250l26-13V143zm-133 77v97l58-8v-82zm58 129l-58 14v97l58-29z"/></g><use fill="#8c3123" transform="rotate(180 256 256)" xlink:href="#a"/><path fill="#5e1f18" d="M314 175l-58 11-58-11 58-15 58 15"/><path fill="#f2b0a9" d="M314 337l-58-11-58 11 58 16 58-16"/></svg>
fill="#fff"/><path fill="#e05243" d="M260 348l-137 33V131l137 32z"/><path fill="#8c3123" d="M256 349l133 32V131l-133 32v186"/><g fill="#e05243"><path id="a" d="M256 64v97l58 14V93zm133 67v250l26-13V143zm-133 77v97l58-8v-82zm58 129l-58 14v97l58-29z"/></g><use fill="#8c3123" transform="rotate(180 256 256)" xlink:href="#a"/><path fill="#5e1f18" d="M314 175l-58 11-58-11 58-15 58 15"/><path fill="#f2b0a9" d="M314 337l-58-11-58 11 58 16 58-16"/></svg>

Before

Width:  |  Height:  |  Size: 649 B

After

Width:  |  Height:  |  Size: 648 B

View File

@@ -3,10 +3,4 @@ aria-label="Briar" role="img"
viewBox="0 0 512 512"><rect
width="512" height="512"
rx="15%"
fill="#fff"/><g
fill="#87c214"><path
id="a" d="m145.7 224V409.2c0 15 12.2 27.4 27.4 27.4H186c15 0 27.4-12.4 27.4-27.4V224zm67.7-89.5v-34.5c0-15.4-12.4-27.8-27.4-27.8H173.1c-15 0-27.4 12.4-27.4 27.8v34.5z"/><use
xlink:href="#a" transform="rotate(180,256,256)"/></g><g
fill="#95d220"><use
xlink:href="#a" transform="rotate(90,256,256)"/><use
xlink:href="#a" transform="rotate(270,256,256)"/></g></svg>
fill="#fff"/><g fill="#87c214"><path id="a" d="m145.7 224V409.2c0 15 12.2 27.4 27.4 27.4H186c15 0 27.4-12.4 27.4-27.4V224zm67.7-89.5v-34.5c0-15.4-12.4-27.8-27.4-27.8H173.1c-15 0-27.4 12.4-27.4 27.8v34.5z"/><use xlink:href="#a" transform="rotate(180,256,256)"/></g><g fill="#95d220"><use xlink:href="#a" transform="rotate(90,256,256)"/><use xlink:href="#a" transform="rotate(270,256,256)"/></g></svg>

Before

Width:  |  Height:  |  Size: 574 B

After

Width:  |  Height:  |  Size: 574 B

View File

@@ -3,6 +3,4 @@ aria-label="Google CoLaboratory" role="img"
viewBox="0 0 512 512"><rect
width="512" height="512"
rx="15%"
fill="#fff"/><path style="fill:#ffc107"
d="m46.7 151.5a147.8 147.8 90 000 208.9L97 310.1a76.6 76.6 90 01-.1-108.3zm368.4 50.3A76.6 76.6 90 01306.7 310.2L256 360.5a147.8 147.8 90 00209.3-209z"></path><path style="fill:#ffd836"
d="m96.9 201.8a76.6 76.6 90 01108.4 0l36.5-62.5A147.8 147.8 90 0046.7 151.5zm108.3 108.4a76.6 76.6 90 01-108.4 0l-50.1 50.3a147.8 147.8 90 00195.2 12zm101.1-.1a76.6 76.6 90 11108.4-108.4l50.6-50.2A147.8 147.8 90 00256 360.4z"></path></svg>
fill="#fff"/><path fill="#ffc107" d="m46.7 151.5a147.8 147.8 90 000 208.9L97 310.1a76.6 76.6 90 01-.1-108.3zm368.4 50.3A76.6 76.6 90 01306.7 310.2L256 360.5a147.8 147.8 90 00209.3-209z"></path><path fill="#ffd836" d="m96.9 201.8a76.6 76.6 90 01108.4 0l36.5-62.5A147.8 147.8 90 0046.7 151.5zm108.3 108.4a76.6 76.6 90 01-108.4 0l-50.1 50.3a147.8 147.8 90 00195.2 12zm101.1-.1a76.6 76.6 90 11108.4-108.4l50.6-50.2A147.8 147.8 90 00256 360.4z"></path></svg>

Before

Width:  |  Height:  |  Size: 611 B

After

Width:  |  Height:  |  Size: 599 B

View File

@@ -3,4 +3,4 @@ aria-label="Dart" role="img"
viewBox="0 0 512 512" fill-rule="evenodd" ><rect
width="512" height="512"
rx="15%"
fill="#fff"/><path fill="#01579b" d="M93.6 294.2c-10-13.3-9.5-27.5-.8-42.3l51.3-107.2 8.1 208.6z"/><path fill="#40c4ff" d="M365.2 363.9l-200.9 1.6 59.7 60.3 141.1.4z"/><path fill="#2cb7f6" d="M297.6 99c-14.2-15.4-31.6-17.1-52.1-5.7l-101.4 51.4v184.5c-.5 9.2 2.6 18.8 8.1 24.2l12.3 12.2h200.7L353 155.44z"/><path fill="#01579b" d="M426.1 225.9L353.7 155c-7.5-7.1-15.5-10.4-24-10.3H144.1l221.1 220.9h60.9z"/></svg>
fill="#fff"/><path fill="#01579b" d="M93.6 294.2c-10-13.3-9.5-27.5-.8-42.3l51.3-107.2 8.1 208.6z"/><path fill="#40c4ff" d="M365.2 363.9l-200.9 1.6 59.7 60.3 141.1.4z"/><path fill="#2cb7f6" d="M297.6 99c-14.2-15.4-31.6-17.1-52.1-5.7l-101.4 51.4v184.5c-.5 9.2 2.6 18.8 8.1 24.2l12.3 12.2h200.7L353 155.44z"/><path fill="#01579b" d="M426.1 225.9L353.7 155c-7.5-7.1-15.5-10.4-24-10.3H144.1l221.1 220.9h60.9z"/></svg>

Before

Width:  |  Height:  |  Size: 565 B

After

Width:  |  Height:  |  Size: 564 B

View File

@@ -2,4 +2,4 @@
aria-label="Gitea" role="img"
viewBox="0 0 512 512"><rect
rx="15%" height="512" width="512"
fill="#fff"/><path d="M419 150c-98 7-186 2-276-1-27 0-63 19-61 67 3 75 71 82 99 83 3 14 35 62 59 65h104c63-5 109-213 75-214zm-311 67c-3-21 7-42 42-42 3 39 10 61 22 96-32-5-59-15-64-54z" fill="#592"/><path d="m293 152v70" stroke="#fff" stroke-width="9"/><g transform="rotate(25.7 496 -423)" stroke-width="7" fill="#592"><path d="M561 246h97" stroke="#592" /><rect x="561" y="246" width="97" height="97" rx="16" fill="#fff"/><path d="M592 245v75" stroke="#592"/><path d="M592 273c45 0 38-5 38 48" fill="none" stroke="#592"/><circle cx="592" cy="320" r="10"/><circle cx="630" cy="320" r="10"/><circle cx="592" cy="273" r="10"/></g></svg>
fill="#fff"/><path d="M419 150c-98 7-186 2-276-1-27 0-63 19-61 67 3 75 71 82 99 83 3 14 35 62 59 65h104c63-5 109-213 75-214zm-311 67c-3-21 7-42 42-42 3 39 10 61 22 96-32-5-59-15-64-54z" fill="#592"/><path d="m293 152v70" stroke="#fff" stroke-width="9"/><g transform="rotate(25.7 496 -423)" stroke-width="7" fill="#592"><path d="M561 246h97" stroke="#592" /><rect x="561" y="246" width="97" height="97" rx="16" fill="#fff"/><path d="M592 245v75" stroke="#592"/><path d="M592 273c45 0 38-5 38 48" fill="none" stroke="#592"/><circle cx="592" cy="320" r="10"/><circle cx="630" cy="320" r="10"/><circle cx="592" cy="273" r="10"/></g></svg>

Before

Width:  |  Height:  |  Size: 767 B

After

Width:  |  Height:  |  Size: 766 B

View File

@@ -2,4 +2,4 @@
aria-label="Mailchimp" role="img"
viewBox="0 0 512 512"><rect
rx="15%" width="512" height="512"
fill="#fd2"/><path fill="#222" d="M418 306l-6-17s25-38-37-51c0 0 4-47-18-69 48-47 37-118-72-72-56-107-272 144-182 184-9 12-9 72 53 78 42 90 144 96 203 69s93-113 59-122zm-263 40c-51-5-56-75-12-82s55 86 12 82zm-15-95c-14 0-31 19-31 19-68-33 123-252 164-167 0 0-100 48-133 148zm200 85c0-4-21 6-59-7 3-21 48 18 123-33l6 21c28-5 0 90-90 89-73-1-96-76-56-117 8-8-29-24-22-59 3-15 16-37 49-31s40-24 62-13 9 53 12 59 35 7 41 24-41 54-114 44c-17-2-27 20-16 34 22 32 112 11 127-20-38 29-116 40-122 9 22 10 59 4 59 0zm-131-158c22-27 51-43 51-43l-6 15s21-16 44-16l-8 8c26 1 37 11 37 11s-61-18-118 25zm135 39c13-1 9 29 9 29h-8s-14-28-1-29zm-59 33c-9 1-19 6-18 2 4-16 41-12 40 2s-9-6-22-4zm21 12c1 2-7 0-13 1s-12 4-12 2 23-11 25-3zm20 3c3-6 15 0 12 6s-15 0-12-6zm25 2c-6 0-6-13 0-13s6 14 0 14zm-180 53c3 3-6 9-13 4s8-29-10-35-13 17-18 14 7-35 28-22-6 33 6 39 5-2 7 0z"/></svg>
fill="#fd2"/><path fill="#222" d="M418 306l-6-17s25-38-37-51c0 0 4-47-18-69 48-47 37-118-72-72-56-107-272 144-182 184-9 12-9 72 53 78 42 90 144 96 203 69s93-113 59-122zm-263 40c-51-5-56-75-12-82s55 86 12 82zm-15-95c-14 0-31 19-31 19-68-33 123-252 164-167 0 0-100 48-133 148zm200 85c0-4-21 6-59-7 3-21 48 18 123-33l6 21c28-5 0 90-90 89-73-1-96-76-56-117 8-8-29-24-22-59 3-15 16-37 49-31s40-24 62-13 9 53 12 59 35 7 41 24-41 54-114 44c-17-2-27 20-16 34 22 32 112 11 127-20-38 29-116 40-122 9 22 10 59 4 59 0zm-131-158c22-27 51-43 51-43l-6 15s21-16 44-16l-8 8c26 1 37 11 37 11s-61-18-118 25zm135 39c13-1 9 29 9 29h-8s-14-28-1-29zm-59 33c-9 1-19 6-18 2 4-16 41-12 40 2s-9-6-22-4zm21 12c1 2-7 0-13 1s-12 4-12 2 23-11 25-3zm20 3c3-6 15 0 12 6s-15 0-12-6zm25 2c-6 0-6-13 0-13s6 14 0 14zm-180 53c3 3-6 9-13 4s8-29-10-35-13 17-18 14 7-35 28-22-6 33 6 39 5-2 7 0z"/></svg>

Before

Width:  |  Height:  |  Size: 999 B

After

Width:  |  Height:  |  Size: 998 B

View File

@@ -1,5 +1,6 @@
<svg xmlns="http://www.w3.org/2000/svg" aria-label="Manjaro" role="img" viewBox="0 0 512 512">
<rect width="512" height="512" rx="15%" fill="#fff"/>
<polygon fill="#4db05e" points="301 192 301 102 102 102 102 410 192 410 192 192 301 192"/>
<rect fill="#4db05e" x="211" y="211" width="90" height="199"/>
<rect fill="#4db05e" x="320" y="102" width="90" height="308"/></svg>
<svg xmlns="http://www.w3.org/2000/svg"
aria-label="Manjaro" role="img"
viewBox="0 0 512 512"><rect
width="512" height="512"
rx="15%"
fill="#fff"/><polygon fill="#4db05e" points="301 192 301 102 102 102 102 410 192 410 192 192 301 192"/><rect fill="#4db05e" x="211" y="211" width="90" height="199"/><rect fill="#4db05e" x="320" y="102" width="90" height="308"/></svg>

Before

Width:  |  Height:  |  Size: 371 B

After

Width:  |  Height:  |  Size: 367 B

View File

@@ -3,7 +3,4 @@ aria-label="NixOS" role="img"
viewBox="0 0 512 512"><rect
width="512" height="512"
rx="15%"
fill="#fff"/>
<g fill-rule="evenodd">
<path d="m177 260 99 171h-45l-27-45-26 45h-23l-11-20 38-65-27-46zm115-75H95l22-40 53 1-26-46 11-20h23l37 65 54 1zm8 137 98-171 23 39-26 46h53l11 19-12 20h-75l-27 47z" fill="#5277c3"/>
<path d="m213 190-99 171-23-39 27-46H65l-11-20 11-20h75l28-46zm8 136h197l-22 40h-53l26 45-11 20h-23l-38-65h-54zm114-75L237 81l45-1 26 46 27-46h22l12 20-38 65 27 47z" fill="#7ebae4"/></g></svg>
fill="#fff"/><g fill-rule="evenodd"><path d="m177 260 99 171h-45l-27-45-26 45h-23l-11-20 38-65-27-46zm115-75H95l22-40 53 1-26-46 11-20h23l37 65 54 1zm8 137 98-171 23 39-26 46h53l11 19-12 20h-75l-27 47z" fill="#5277c3"/><path d="m213 190-99 171-23-39 27-46H65l-11-20 11-20h75l28-46zm8 136h197l-22 40h-53l26 45-11 20h-23l-38-65h-54zm114-75L237 81l45-1 26 46 27-46h22l12 20-38 65 27 47z" fill="#7ebae4"/></g></svg>

Before

Width:  |  Height:  |  Size: 547 B

After

Width:  |  Height:  |  Size: 543 B

View File

@@ -3,4 +3,4 @@ aria-label="Overleaf" role="img"
viewBox="0 0 512 512"><rect
width="512" height="512"
rx="15%"
fill="#fff"/><path d="M118 304c0 41 23 79 60 99 37 19 81 17 115-7 34-23 52-64 47-105s-32-76-71-91c-13-5-26-8-40-7.5-24 16-44 39-56 65 41-43 99-30 123 16 21 52-16 103-67 104-54-2.7-85-55-77-100 14-86 117-135 193-154-35 17-69 36-101 58 92 35 107-42 149-76-43-17-197-25-198 68-44 28-75 72-77 130z" fill="#46a247"/></svg>
fill="#fff"/><path d="M118 304c0 41 23 79 60 99 37 19 81 17 115-7 34-23 52-64 47-105s-32-76-71-91c-13-5-26-8-40-7.5-24 16-44 39-56 65 41-43 99-30 123 16 21 52-16 103-67 104-54-2.7-85-55-77-100 14-86 117-135 193-154-35 17-69 36-101 58 92 35 107-42 149-76-43-17-197-25-198 68-44 28-75 72-77 130z" fill="#46a247"/></svg>

Before

Width:  |  Height:  |  Size: 453 B

After

Width:  |  Height:  |  Size: 452 B

View File

@@ -3,4 +3,4 @@ aria-label="quora" role="img"
viewBox="0 0 512 512" ><rect
width="512" height="512"
rx="15%"
fill="#b92b27"/><path d="M383.2,356.5,412.9,386c6.7,6.7,8.6,13.9,5.3,20.7s-9.9,9.7-17.8,9.7c-48.7-.1-97.4.1-146-.1-82.2-.3-152.7-65.1-160-147-7.5-83.5,44.8-156,126.5-175.4,87.3-20.8,178.6,38.1,195.4,126C425.9,270.1,414.9,315.3,383.2,356.5ZM354,253.5c.1-54.1-43.3-97.9-96.9-97.9s-98.3,43.8-98.2,97.7,44.2,97.6,97.6,97.7S354,307.2,354,253.5Z" style="fill:#fff"/></svg>
fill="#b92b27"/><path d="M383.2,356.5,412.9,386c6.7,6.7,8.6,13.9,5.3,20.7s-9.9,9.7-17.8,9.7c-48.7-.1-97.4.1-146-.1-82.2-.3-152.7-65.1-160-147-7.5-83.5,44.8-156,126.5-175.4,87.3-20.8,178.6,38.1,195.4,126C425.9,270.1,414.9,315.3,383.2,356.5ZM354,253.5c.1-54.1-43.3-97.9-96.9-97.9s-98.3,43.8-98.2,97.7,44.2,97.6,97.6,97.7S354,307.2,354,253.5Z" style="fill:#fff"/></svg>

Before

Width:  |  Height:  |  Size: 500 B

After

Width:  |  Height:  |  Size: 499 B

View File

@@ -2,4 +2,4 @@
aria-label="Sublime Text" role="img"
viewBox="0 0 512 512"><rect
rx="15%" width="512" height="512"
fill="#424242"/><rect transform="skewY(-17.5)" x="110" y="375" width="292" height="107" rx="8" fill="url(#lg)"/><rect transform="skewY(17.5)" x="110" y="122" width="292" height="107" rx="8" fill="#ff9800"/><rect transform="skewY(-17.5)" x="110" y="191" width="292" height="107" rx="8" fill="#ff9800"/><defs><linearGradient id="lg" x1="174" x2="189" y1="725" y2="716" gradientTransform="scale(1.65 .605)" gradientUnits="userSpaceOnUse"><stop stop-color="#ff9700" offset="0"/><stop stop-color="#f48e00" offset=".5271813"/><stop stop-color="#d06f00" offset="1"/></linearGradient></defs></svg>
fill="#424242"/><rect transform="skewY(-17.5)" x="110" y="375" width="292" height="107" rx="8" fill="url(#lg)"/><rect transform="skewY(17.5)" x="110" y="122" width="292" height="107" rx="8" fill="#ff9800"/><rect transform="skewY(-17.5)" x="110" y="191" width="292" height="107" rx="8" fill="#ff9800"/><defs><linearGradient id="lg" x1="174" x2="189" y1="725" y2="716" gradientTransform="scale(1.65 .605)" gradientUnits="userSpaceOnUse"><stop stop-color="#ff9700" offset="0"/><stop stop-color="#f48e00" offset=".5271813"/><stop stop-color="#d06f00" offset="1"/></linearGradient></defs></svg>

Before

Width:  |  Height:  |  Size: 729 B

After

Width:  |  Height:  |  Size: 728 B

View File

@@ -2,4 +2,4 @@
aria-label="TikTok" role="img"
viewBox="0 0 512 512"><rect
rx="15%" height="512" width="512"
fill="#fff"/><defs><path id="t" d="M219 200a117 117 0 1 0 101 115v-128a150 150 0 0 0 88 28v-63a88 88 0 0 1-88-88h-64v252a54 54 0 1 1-37-51z" style="mix-blend-mode:multiply"/></defs><use href="#t" fill="#f05" x="18" y="15"/><use href="#t" fill="#0ee"/></svg>
fill="#fff"/><defs><path id="t" d="M219 200a117 117 0 1 0 101 115v-128a150 150 0 0 0 88 28v-63a88 88 0 0 1-88-88h-64v252a54 54 0 1 1-37-51z" style="mix-blend-mode:multiply"/></defs><use href="#t" fill="#f05" x="18" y="15"/><use href="#t" fill="#0ee"/></svg>

Before

Width:  |  Height:  |  Size: 434 B

After

Width:  |  Height:  |  Size: 433 B