From c5f333483bb49d68fae02e3141c72fdbe8ce9a22 Mon Sep 17 00:00:00 2001 From: ThatGuySam Date: Sat, 12 Aug 2023 12:51:46 -0500 Subject: [PATCH] Fix typos --- build-lists.js | 4 ++-- test/main.js | 4 ++-- vite.config.mjs | 2 +- 3 files changed, 5 insertions(+), 5 deletions(-) diff --git a/build-lists.js b/build-lists.js index 6a0552b..0de3772 100644 --- a/build-lists.js +++ b/build-lists.js @@ -287,7 +287,7 @@ class BuildLists { return } - // Run all listsOprions methods + // Run all listsOptions methods // and store them to this.lists async buildLists () { console.log( 'Build Lists started', cliOptions ) @@ -321,7 +321,7 @@ class BuildLists { getListArrayMemoized = memoize( this.getListArray.bind( this ) ) makeAppsByCategory () { - // Intialize empty category lists + // Initialize empty category lists // so empty categories still get defined const emptyCategories = Object.fromEntries( Object.keys( categories ).map( categorySlug => [ categorySlug, [] ]) diff --git a/test/main.js b/test/main.js index e6bd14f..bd07807 100644 --- a/test/main.js +++ b/test/main.js @@ -118,7 +118,7 @@ test('Sitemap contains no double slashes in paths', (t) => { test('Sitemap mostly matches production', async (t) => { // console.log('t.context.sitemapUrls', t.context.sitemapUrls) - const theshold = 20 + const threshold = 20 const urlsNotOnLive = new Set() // const newLocalUrls = new Set() @@ -154,7 +154,7 @@ test('Sitemap mostly matches production', async (t) => { t.log( 'Not found locally', liveSitemapUrlStrings ) } - if ( totalDifferences >= theshold ) { + if ( totalDifferences >= threshold ) { t.fail( message ) } diff --git a/vite.config.mjs b/vite.config.mjs index e77c01b..3efa322 100644 --- a/vite.config.mjs +++ b/vite.config.mjs @@ -1,4 +1,4 @@ -// We keep a seperate vite config file that vite-node, vitest, and Astro can reference +// We keep a separate vite config file that vite-node, vitest, and Astro can reference // so that our environment is as close as possible for all of them. // yarn add --dev @esbuild-plugins/node-globals-polyfill