From f2512c14f7a9c4fc0c08c94e20c0376621bcbd55 Mon Sep 17 00:00:00 2001 From: "dependabot[bot]" <49699333+dependabot[bot]@users.noreply.github.com> Date: Sat, 2 Mar 2024 02:01:18 +0900 Subject: [PATCH] chore(deps-dev): bump eslint-plugin-mocha from 10.2.0 to 10.3.0 (#298) * chore(deps-dev): bump eslint-plugin-mocha from 10.2.0 to 10.3.0 Bumps [eslint-plugin-mocha](https://github.com/lo1tuma/eslint-plugin-mocha) from 10.2.0 to 10.3.0. - [Release notes](https://github.com/lo1tuma/eslint-plugin-mocha/releases) - [Changelog](https://github.com/lo1tuma/eslint-plugin-mocha/blob/main/CHANGELOG.md) - [Commits](https://github.com/lo1tuma/eslint-plugin-mocha/compare/10.2.0...10.3.0) --- updated-dependencies: - dependency-name: eslint-plugin-mocha dependency-type: direct:development update-type: version-update:semver-minor ... Signed-off-by: dependabot[bot] * fix --------- Signed-off-by: dependabot[bot] Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com> Co-authored-by: Julian Grinblat --- package-lock.json | 14 +++++++------- package.json | 2 +- test/index.js | 2 ++ 3 files changed, 10 insertions(+), 8 deletions(-) diff --git a/package-lock.json b/package-lock.json index f71517d..6ab7481 100644 --- a/package-lock.json +++ b/package-lock.json @@ -27,7 +27,7 @@ "eslint-config-airbnb-base": "^15.0.0", "eslint-plugin-eslint-comments": "^3.2.0", "eslint-plugin-import": "^2.29.1", - "eslint-plugin-mocha": "^10.2.0", + "eslint-plugin-mocha": "^10.3.0", "eslint-plugin-n": "^16.6.2", "eslint-plugin-unicorn": "^51.0.1", "mocha": "^10.3.0" @@ -1588,9 +1588,9 @@ } }, "node_modules/eslint-plugin-mocha": { - "version": "10.2.0", - "resolved": "https://registry.npmjs.org/eslint-plugin-mocha/-/eslint-plugin-mocha-10.2.0.tgz", - "integrity": "sha512-ZhdxzSZnd1P9LqDPF0DBcFLpRIGdh1zkF2JHnQklKQOvrQtT73kdP5K9V2mzvbLR+cCAO9OI48NXK/Ax9/ciCQ==", + "version": "10.3.0", + "resolved": "https://registry.npmjs.org/eslint-plugin-mocha/-/eslint-plugin-mocha-10.3.0.tgz", + "integrity": "sha512-IWzbg2K6B1Q7h37Ih4zMyW+nhmw1JvUlHlbCUUUu6PfOOAUGCB0gxmvv7/U+TQQ6e8yHUv+q7KMdIIum4bx+PA==", "dev": true, "dependencies": { "eslint-utils": "^3.0.0", @@ -5549,9 +5549,9 @@ } }, "eslint-plugin-mocha": { - "version": "10.2.0", - "resolved": "https://registry.npmjs.org/eslint-plugin-mocha/-/eslint-plugin-mocha-10.2.0.tgz", - "integrity": "sha512-ZhdxzSZnd1P9LqDPF0DBcFLpRIGdh1zkF2JHnQklKQOvrQtT73kdP5K9V2mzvbLR+cCAO9OI48NXK/Ax9/ciCQ==", + "version": "10.3.0", + "resolved": "https://registry.npmjs.org/eslint-plugin-mocha/-/eslint-plugin-mocha-10.3.0.tgz", + "integrity": "sha512-IWzbg2K6B1Q7h37Ih4zMyW+nhmw1JvUlHlbCUUUu6PfOOAUGCB0gxmvv7/U+TQQ6e8yHUv+q7KMdIIum4bx+PA==", "dev": true, "requires": { "eslint-utils": "^3.0.0", diff --git a/package.json b/package.json index b9c303a..1311638 100644 --- a/package.json +++ b/package.json @@ -49,7 +49,7 @@ "eslint-config-airbnb-base": "^15.0.0", "eslint-plugin-eslint-comments": "^3.2.0", "eslint-plugin-import": "^2.29.1", - "eslint-plugin-mocha": "^10.2.0", + "eslint-plugin-mocha": "^10.3.0", "eslint-plugin-n": "^16.6.2", "eslint-plugin-unicorn": "^51.0.1", "mocha": "^10.3.0" diff --git a/test/index.js b/test/index.js index fce602d..788fd40 100644 --- a/test/index.js +++ b/test/index.js @@ -233,9 +233,11 @@ describe('i18next-gettext-converter', () => { describe('should skip empty values appropriately', () => { it('base', () => expect(gettextToI18next('en', readFileSync(testFiles.en.untranslated)).then(JSON.parse)) .to.become(requireTestFile(testFiles.en.untranslated_expected))); + it('skipUntranslated', () => expect(gettextToI18next('en', readFileSync(testFiles.en.untranslated), { skipUntranslated: true, }).then(JSON.parse)).to.become(requireTestFile(testFiles.en.untranslated_skipped))); + it('skipUntranslated and keyasareference', () => expect(gettextToI18next('en', readFileSync(testFiles.en.untranslated), { keyasareference: true, skipUntranslated: true,