From d8e3452fd2ed9d4f04f89c31972f5c3dba257497 Mon Sep 17 00:00:00 2001
From: "dependabot[bot]" <49699333+dependabot[bot]@users.noreply.github.com>
Date: Wed, 17 Apr 2024 19:16:10 +0000
Subject: [PATCH] chore(deps-dev): bump eslint-plugin-mocha from 10.4.1 to
 10.4.2 (#10085)

* chore(deps-dev): bump eslint-plugin-mocha from 10.4.1 to 10.4.2

Bumps [eslint-plugin-mocha](https://github.com/lo1tuma/eslint-plugin-mocha) from 10.4.1 to 10.4.2.
- [Release notes](https://github.com/lo1tuma/eslint-plugin-mocha/releases)
- [Changelog](https://github.com/lo1tuma/eslint-plugin-mocha/blob/10.4.2/CHANGELOG.md)
- [Commits](https://github.com/lo1tuma/eslint-plugin-mocha/compare/10.4.1...10.4.2)

---
updated-dependencies:
- dependency-name: eslint-plugin-mocha
  dependency-type: direct:development
  update-type: version-update:semver-patch
...

Signed-off-by: dependabot[bot] <support@github.com>

* fix mocha/prefer-arrow-callback errors

---------

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
Co-authored-by: chris48s <git@chris-shaw.dev>
---
 core/base-service/coalesce.spec.js         | 2 +-
 package-lock.json                          | 8 ++++----
 package.json                               | 2 +-
 services/packagist/packagist-base.spec.js  | 6 +++---
 services/pypi/pypi-helpers.spec.js         | 6 +++---
 services/pypi/pypi-python-versions.spec.js | 2 +-
 6 files changed, 13 insertions(+), 13 deletions(-)

diff --git a/core/base-service/coalesce.spec.js b/core/base-service/coalesce.spec.js
index 361f2bd8a7..caafc31490 100644
--- a/core/base-service/coalesce.spec.js
+++ b/core/base-service/coalesce.spec.js
@@ -6,7 +6,7 @@ import coalesce from './coalesce.js'
 // https://github.com/royriojas/coalescy for these tests!
 
 describe('coalesce', function () {
-  test(coalesce, function () {
+  test(coalesce, () => {
     given().expect(undefined)
     given(null, []).expect([])
     given(null, [], {}).expect([])
diff --git a/package-lock.json b/package-lock.json
index 01a31ee9c7..61d9666048 100644
--- a/package-lock.json
+++ b/package-lock.json
@@ -85,7 +85,7 @@
         "eslint-plugin-icedfrisby": "^0.1.0",
         "eslint-plugin-import": "^2.29.1",
         "eslint-plugin-jsdoc": "^48.2.3",
-        "eslint-plugin-mocha": "^10.4.1",
+        "eslint-plugin-mocha": "^10.4.2",
         "eslint-plugin-no-extension-in-require": "^0.2.0",
         "eslint-plugin-node": "^11.1.0",
         "eslint-plugin-promise": "6.1.1",
@@ -11526,9 +11526,9 @@
       }
     },
     "node_modules/eslint-plugin-mocha": {
-      "version": "10.4.1",
-      "resolved": "https://registry.npmjs.org/eslint-plugin-mocha/-/eslint-plugin-mocha-10.4.1.tgz",
-      "integrity": "sha512-G85ALUgKaLzuEuHhoW3HVRgPTmia6njQC3qCG6CEvA8/Ja9PDZnRZOuzekMki+HaViEQXINuYsmhp5WR5/4MfA==",
+      "version": "10.4.2",
+      "resolved": "https://registry.npmjs.org/eslint-plugin-mocha/-/eslint-plugin-mocha-10.4.2.tgz",
+      "integrity": "sha512-cur4dVYnSEWTBwdqIBQFxa/9siAhesu0TX+lbJ4ClE9j0eNMNe6BSx3vkFFNz6tGoveyMyELFXa30f3fvuAVDg==",
       "dev": true,
       "dependencies": {
         "eslint-utils": "^3.0.0",
diff --git a/package.json b/package.json
index ef0937085c..b25c311d10 100644
--- a/package.json
+++ b/package.json
@@ -172,7 +172,7 @@
     "eslint-plugin-icedfrisby": "^0.1.0",
     "eslint-plugin-import": "^2.29.1",
     "eslint-plugin-jsdoc": "^48.2.3",
-    "eslint-plugin-mocha": "^10.4.1",
+    "eslint-plugin-mocha": "^10.4.2",
     "eslint-plugin-no-extension-in-require": "^0.2.0",
     "eslint-plugin-node": "^11.1.0",
     "eslint-plugin-promise": "6.1.1",
diff --git a/services/packagist/packagist-base.spec.js b/services/packagist/packagist-base.spec.js
index 1b6f1ec462..ba97113327 100644
--- a/services/packagist/packagist-base.spec.js
+++ b/services/packagist/packagist-base.spec.js
@@ -56,8 +56,8 @@ const expandedSample = [
   },
 ]
 
-describe('BasePackagistService', function () {
-  describe('expandPackageVersions', function () {
+describe('BasePackagistService', () => {
+  describe('expandPackageVersions', () => {
     const expanded = BasePackagistService.expandPackageVersions(
       {
         packages: {
@@ -66,7 +66,7 @@ describe('BasePackagistService', function () {
       },
       'foobar/foobar',
     )
-    it('should expand the minified package array to match the expanded sample', function () {
+    it('should expand the minified package array to match the expanded sample', () => {
       assert.deepStrictEqual(
         expanded,
         expandedSample,
diff --git a/services/pypi/pypi-helpers.spec.js b/services/pypi/pypi-helpers.spec.js
index 2762af6759..b55ba19703 100644
--- a/services/pypi/pypi-helpers.spec.js
+++ b/services/pypi/pypi-helpers.spec.js
@@ -35,7 +35,7 @@ const classifiersFixture = {
 }
 
 describe('PyPI helpers', function () {
-  test(parseClassifiers, function () {
+  test(parseClassifiers, () => {
     given(
       classifiersFixture,
       /^Programming Language :: Python :: ([\d.]+)$/,
@@ -60,7 +60,7 @@ describe('PyPI helpers', function () {
     given(classifiersFixture, /^(?!.*)*$/).expect([])
   })
 
-  test(parsePypiVersionString, function () {
+  test(parsePypiVersionString, () => {
     given('1').expect({ major: 1, minor: 0 })
     given('1.0').expect({ major: 1, minor: 0 })
     given('7.2').expect({ major: 7, minor: 2 })
@@ -69,7 +69,7 @@ describe('PyPI helpers', function () {
     given('foo').expect({ major: 0, minor: 0 })
   })
 
-  test(sortPypiVersions, function () {
+  test(sortPypiVersions, () => {
     // Each of these includes a different variant: 2.0, 2, and 2.0rc1.
     given(['2.0', '1.9', '10', '1.11', '2.1', '2.11']).expect([
       '1.9',
diff --git a/services/pypi/pypi-python-versions.spec.js b/services/pypi/pypi-python-versions.spec.js
index 8a8c483882..b620b5706c 100644
--- a/services/pypi/pypi-python-versions.spec.js
+++ b/services/pypi/pypi-python-versions.spec.js
@@ -2,7 +2,7 @@ import { test, given } from 'sazerac'
 import PypiPythonVersions from './pypi-python-versions.service.js'
 
 describe('PyPI Python Version', function () {
-  test(PypiPythonVersions.render, function () {
+  test(PypiPythonVersions.render, () => {
     // Major versions are hidden if minor are present.
     given({ versions: ['3', '3.4', '3.5', '3.6', '2', '2.7'] }).expect({
       message: '2.7 | 3.4 | 3.5 | 3.6',
-- 
GitLab