Repository: nodejs/nodejs.dev (ts)

Issue:
Downloads: Remove Node.js 13 from tabbed view
## Summary
Node.js 13 is EOL so we should remove it from the upcoming release tabbed view.
http://nodejs.dev/download

![Downloads](https://user-images.githubusercontent.com/7907232/118872353-53309080-b89d-11eb-84f0-1bbf12f8e0f5.png)


Pull request description:
Remove Node.js 13 from tabbed view
Fixes #1338
Hi @benhalverson, how does this look?
Thanks

Patch:
diff --git a/src/components/UpcomingReleases/index.tsx b/src/components/UpcomingReleases/index.tsx
index 9e1ea5e4..89ba37c7 100644
--- a/src/components/UpcomingReleases/index.tsx
+++ b/src/components/UpcomingReleases/index.tsx
@@ -3,7 +3,6 @@ import { Tab, TabList, TabPanel, Tabs } from 'react-tabs';
 import UpcomingReleasesPanel from './UpcomingReleasesPanel';
 import {
   NODE_12_RELEASES,
-  NODE_13_RELEASES,
   NODE_14_RELEASES,
   NODE_15_RELEASES,
   NODE_16_RELEASES,
@@ -16,7 +15,6 @@ export default function UpcomingReleases(): JSX.Element {
       <Tabs>
         <TabList>
           <Tab>Node.js 12</Tab>
-          <Tab>Node.js 13</Tab>
           <Tab>Node.js 14</Tab>
           <Tab>Node.js 15</Tab>
           <Tab>Node.js 16</Tab>
@@ -24,9 +22,6 @@ export default function UpcomingReleases(): JSX.Element {
         <TabPanel>
           <UpcomingReleasesPanel releases={NODE_12_RELEASES} />
         </TabPanel>
-        <TabPanel>
-          <UpcomingReleasesPanel releases={NODE_13_RELEASES} />
-        </TabPanel>
         <TabPanel>
           <UpcomingReleasesPanel releases={NODE_14_RELEASES} />
         </TabPanel>
diff --git a/src/components/UpcomingReleases/upcomingReleases.ts b/src/components/UpcomingReleases/upcomingReleases.ts
index c63ca730..79db29fb 100644
--- a/src/components/UpcomingReleases/upcomingReleases.ts
+++ b/src/components/UpcomingReleases/upcomingReleases.ts
@@ -36,24 +36,6 @@ export const NODE_12_RELEASES: UpcomingRelease[] = [
   },
 ];
 
-export const NODE_13_RELEASES: UpcomingRelease[] = [
-  {
-    alreadyReleased: true,
-    releaseDate: '2019-10-22',
-    releaseType: 'current',
-  },
-  {
-    alreadyReleased: true,
-    releaseDate: '2020-04-01',
-    releaseType: 'maintenance',
-  },
-  {
-    alreadyReleased: true,
-    releaseDate: '2020-06-01',
-    releaseType: 'endoflife',
-  },
-];
-
 export const NODE_14_RELEASES: UpcomingRelease[] = [
   {
     alreadyReleased: true,


Test patch:
diff --git a/src/components/DownloadReleases/__tests__/__snapshots__/download-releases.test.tsx.snap b/src/components/DownloadReleases/__tests__/__snapshots__/download-releases.test.tsx.snap
index 352639e6..a5f97dc0 100644
--- a/src/components/DownloadReleases/__tests__/__snapshots__/download-releases.test.tsx.snap
+++ b/src/components/DownloadReleases/__tests__/__snapshots__/download-releases.test.tsx.snap
@@ -40,7 +40,7 @@ exports[`DownloadReleases component renders correctly 1`] = `
             id="react-tabs-2"
             role="tab"
           >
-            Node.js 13
+            Node.js 14
           </li>
           <li
             aria-controls="react-tabs-5"
@@ -50,7 +50,7 @@ exports[`DownloadReleases component renders correctly 1`] = `
             id="react-tabs-4"
             role="tab"
           >
-            Node.js 14
+            Node.js 15
           </li>
           <li
             aria-controls="react-tabs-7"
@@ -59,16 +59,6 @@ exports[`DownloadReleases component renders correctly 1`] = `
             class="react-tabs__tab"
             id="react-tabs-6"
             role="tab"
-          >
-            Node.js 15
-          </li>
-          <li
-            aria-controls="react-tabs-9"
-            aria-disabled="false"
-            aria-selected="false"
-            class="react-tabs__tab"
-            id="react-tabs-8"
-            role="tab"
           >
             Node.js 16
           </li>
@@ -182,12 +172,6 @@ exports[`DownloadReleases component renders correctly 1`] = `
           id="react-tabs-7"
           role="tabpanel"
         />
-        <div
-          aria-labelledby="react-tabs-8"
-          class="react-tabs__tab-panel"
-          id="react-tabs-9"
-          role="tabpanel"
-        />
       </div>
     </div>
     <p
diff --git a/src/components/UpcomingReleases/__tests__/__snapshots__/upcoming-releases.test.tsx.snap b/src/components/UpcomingReleases/__tests__/__snapshots__/upcoming-releases.test.tsx.snap
index 777f86a8..5ad183a6 100644
--- a/src/components/UpcomingReleases/__tests__/__snapshots__/upcoming-releases.test.tsx.snap
+++ b/src/components/UpcomingReleases/__tests__/__snapshots__/upcoming-releases.test.tsx.snap
@@ -32,7 +32,7 @@ exports[`UpcomingReleases component renders correctly 1`] = `
           id="react-tabs-2"
           role="tab"
         >
-          Node.js 13
+          Node.js 14
         </li>
         <li
           aria-controls="react-tabs-5"
@@ -42,7 +42,7 @@ exports[`UpcomingReleases component renders correctly 1`] = `
           id="react-tabs-4"
           role="tab"
         >
-          Node.js 14
+          Node.js 15
         </li>
         <li
           aria-controls="react-tabs-7"
@@ -51,16 +51,6 @@ exports[`UpcomingReleases component renders correctly 1`] = `
           class="react-tabs__tab"
           id="react-tabs-6"
           role="tab"
-        >
-          Node.js 15
-        </li>
-        <li
-          aria-controls="react-tabs-9"
-          aria-disabled="false"
-          aria-selected="false"
-          class="react-tabs__tab"
-          id="react-tabs-8"
-          role="tab"
         >
           Node.js 16
         </li>
@@ -174,12 +164,6 @@ exports[`UpcomingReleases component renders correctly 1`] = `
         id="react-tabs-7"
         role="tabpanel"
       />
-      <div
-        aria-labelledby="react-tabs-8"
-        class="react-tabs__tab-panel"
-        id="react-tabs-9"
-        role="tabpanel"
-      />
     </div>
   </div>
 </div>
diff --git a/test/pages/__snapshots__/download.test.tsx.snap b/test/pages/__snapshots__/download.test.tsx.snap
index ddd733bd..4202faaa 100644
--- a/test/pages/__snapshots__/download.test.tsx.snap
+++ b/test/pages/__snapshots__/download.test.tsx.snap
@@ -343,7 +343,7 @@ exports[`Download page renders correctly 1`] = `
                 id="react-tabs-2"
                 role="tab"
               >
-                Node.js 13
+                Node.js 14
               </li>
               <li
                 aria-controls="react-tabs-5"
@@ -353,7 +353,7 @@ exports[`Download page renders correctly 1`] = `
                 id="react-tabs-4"
                 role="tab"
               >
-                Node.js 14
+                Node.js 15
               </li>
               <li
                 aria-controls="react-tabs-7"
@@ -362,16 +362,6 @@ exports[`Download page renders correctly 1`] = `
                 class="react-tabs__tab"
                 id="react-tabs-6"
                 role="tab"
-              >
-                Node.js 15
-              </li>
-              <li
-                aria-controls="react-tabs-9"
-                aria-disabled="false"
-                aria-selected="false"
-                class="react-tabs__tab"
-                id="react-tabs-8"
-                role="tab"
               >
                 Node.js 16
               </li>
@@ -485,12 +475,6 @@ exports[`Download page renders correctly 1`] = `
               id="react-tabs-7"
               role="tabpanel"
             />
-            <div
-              aria-labelledby="react-tabs-8"
-              class="react-tabs__tab-panel"
-              id="react-tabs-9"
-              role="tabpanel"
-            />
           </div>
         </div>
         <p
@@ -1279,61 +1263,51 @@ exports[`Download page should handle LTS to Current switch 1`] = `
               role="tablist"
             >
               <li
-                aria-controls="react-tabs-11"
+                aria-controls="react-tabs-9"
                 aria-disabled="false"
                 aria-selected="true"
                 class="react-tabs__tab react-tabs__tab--selected"
-                id="react-tabs-10"
+                id="react-tabs-8"
                 role="tab"
                 tabindex="0"
               >
                 Node.js 12
               </li>
               <li
-                aria-controls="react-tabs-13"
-                aria-disabled="false"
-                aria-selected="false"
-                class="react-tabs__tab"
-                id="react-tabs-12"
-                role="tab"
-              >
-                Node.js 13
-              </li>
-              <li
-                aria-controls="react-tabs-15"
+                aria-controls="react-tabs-11"
                 aria-disabled="false"
                 aria-selected="false"
                 class="react-tabs__tab"
-                id="react-tabs-14"
+                id="react-tabs-10"
                 role="tab"
               >
                 Node.js 14
               </li>
               <li
-                aria-controls="react-tabs-17"
+                aria-controls="react-tabs-13"
                 aria-disabled="false"
                 aria-selected="false"
                 class="react-tabs__tab"
-                id="react-tabs-16"
+                id="react-tabs-12"
                 role="tab"
               >
                 Node.js 15
               </li>
               <li
-                aria-controls="react-tabs-19"
+                aria-controls="react-tabs-15"
                 aria-disabled="false"
                 aria-selected="false"
                 class="react-tabs__tab"
-                id="react-tabs-18"
+                id="react-tabs-14"
                 role="tab"
               >
                 Node.js 16
               </li>
             </ul>
             <div
-              aria-labelledby="react-tabs-10"
+              aria-labelledby="react-tabs-8"
               class="react-tabs__tab-panel react-tabs__tab-panel--selected"
-              id="react-tabs-11"
+              id="react-tabs-9"
               role="tabpanel"
             >
               <div
@@ -1422,27 +1396,21 @@ exports[`Download page should handle LTS to Current switch 1`] = `
               </div>
             </div>
             <div
-              aria-labelledby="react-tabs-12"
-              class="react-tabs__tab-panel"
-              id="react-tabs-13"
-              role="tabpanel"
-            />
-            <div
-              aria-labelledby="react-tabs-14"
+              aria-labelledby="react-tabs-10"
               class="react-tabs__tab-panel"
-              id="react-tabs-15"
+              id="react-tabs-11"
               role="tabpanel"
             />
             <div
-              aria-labelledby="react-tabs-16"
+              aria-labelledby="react-tabs-12"
               class="react-tabs__tab-panel"
-              id="react-tabs-17"
+              id="react-tabs-13"
               role="tabpanel"
             />
             <div
-              aria-labelledby="react-tabs-18"
+              aria-labelledby="react-tabs-14"
               class="react-tabs__tab-panel"
-              id="react-tabs-19"
+              id="react-tabs-15"
               role="tabpanel"
             />
           </div>