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>
This commit is contained in:
dependabot[bot]
2024-04-17 19:16:10 +00:00
committed by GitHub
parent dd8e2cdcca
commit d8e3452fd2
6 changed files with 13 additions and 13 deletions

View File

@@ -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([])

8
package-lock.json generated
View File

@@ -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",

View File

@@ -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",

View File

@@ -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,

View File

@@ -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',

View File

@@ -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',