Skip to content

Commit

Permalink
chore(deps-dev): bump eslint-plugin-mocha from 10.4.1 to 10.4.2 (#10085)
Browse files Browse the repository at this point in the history
* 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](lo1tuma/eslint-plugin-mocha@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>
  • Loading branch information
dependabot[bot] and chris48s committed Apr 17, 2024
1 parent dd8e2cd commit d8e3452
Show file tree
Hide file tree
Showing 6 changed files with 13 additions and 13 deletions.
2 changes: 1 addition & 1 deletion core/base-service/coalesce.spec.js
Original file line number Diff line number Diff line change
Expand Up @@ -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([])
Expand Down
8 changes: 4 additions & 4 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -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",
Expand Down
6 changes: 3 additions & 3 deletions services/packagist/packagist-base.spec.js
Original file line number Diff line number Diff line change
Expand Up @@ -56,8 +56,8 @@ const expandedSample = [
},
]

describe('BasePackagistService', function () {
describe('expandPackageVersions', function () {
describe('BasePackagistService', () => {
describe('expandPackageVersions', () => {
const expanded = BasePackagistService.expandPackageVersions(
{
packages: {
Expand All @@ -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,
Expand Down
6 changes: 3 additions & 3 deletions services/pypi/pypi-helpers.spec.js
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,7 @@ const classifiersFixture = {
}

describe('PyPI helpers', function () {
test(parseClassifiers, function () {
test(parseClassifiers, () => {
given(
classifiersFixture,
/^Programming Language :: Python :: ([\d.]+)$/,
Expand All @@ -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 })
Expand All @@ -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',
Expand Down
2 changes: 1 addition & 1 deletion services/pypi/pypi-python-versions.spec.js
Original file line number Diff line number Diff line change
Expand Up @@ -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',
Expand Down

0 comments on commit d8e3452

Please sign in to comment.