diff --git a/core/base-service/coalesce.spec.js b/core/base-service/coalesce.spec.js index 361f2bd8a7d32..caafc31490374 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 01a31ee9c74a8..61d9666048bda 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 ef0937085ccb6..b25c311d1081b 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 1b6f1ec462393..ba97113327af2 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 2762af6759d23..b55ba197038ad 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 8a8c483882e9e..b620b5706cc8a 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',