diff options
author | John Molakvoæ <skjnldsv@protonmail.com> | 2022-04-14 13:00:33 +0300 |
---|---|---|
committer | John Molakvoæ <skjnldsv@protonmail.com> | 2022-04-14 13:01:32 +0300 |
commit | 5e10aadcab497201061f244d27168ef11604678d (patch) | |
tree | 7cad4f69b9afdcc116cc72b9f0cb7d4b9bd6acf1 | |
parent | ff67f38a7be7853e26528a80094af7604e306a1d (diff) |
Fix chai linting
Signed-off-by: John Molakvoæ <skjnldsv@protonmail.com>
-rw-r--r-- | .eslintrc.js | 1 | ||||
-rw-r--r-- | package-lock.json | 20 | ||||
-rw-r--r-- | package.json | 3 | ||||
-rw-r--r-- | src/tests/components/PersonalTotpSettings.spec.js | 2 |
4 files changed, 24 insertions, 2 deletions
diff --git a/.eslintrc.js b/.eslintrc.js index 536e2a0..ecc6f1d 100644 --- a/.eslintrc.js +++ b/.eslintrc.js @@ -1,5 +1,6 @@ module.exports = { extends: [ '@nextcloud', + 'plugin:chai-friendly/recommended' ], }
\ No newline at end of file diff --git a/package-lock.json b/package-lock.json index 03c1677..827d5b5 100644 --- a/package-lock.json +++ b/package-lock.json @@ -30,6 +30,7 @@ "babel-core": "^7.0.0-bridge.0", "babel-jest": "^27.5.1", "chai": "^4.3.6", + "eslint-plugin-chai-friendly": "^0.7.2", "jest": "^27.5.1", "vue-jest": "^3.0.7" }, @@ -7079,6 +7080,18 @@ "node": ">=4" } }, + "node_modules/eslint-plugin-chai-friendly": { + "version": "0.7.2", + "resolved": "https://registry.npmjs.org/eslint-plugin-chai-friendly/-/eslint-plugin-chai-friendly-0.7.2.tgz", + "integrity": "sha512-LOIfGx5sZZ5FwM1shr2GlYAWV9Omdi+1/3byuVagvQNoGUuU0iHhp7AfjA1uR+4dJ4Isfb4+FwBJgQajIw9iAg==", + "dev": true, + "engines": { + "node": ">=0.10.0" + }, + "peerDependencies": { + "eslint": ">=3.0.0" + } + }, "node_modules/eslint-plugin-es": { "version": "4.1.0", "resolved": "https://registry.npmjs.org/eslint-plugin-es/-/eslint-plugin-es-4.1.0.tgz", @@ -24132,6 +24145,13 @@ } } }, + "eslint-plugin-chai-friendly": { + "version": "0.7.2", + "resolved": "https://registry.npmjs.org/eslint-plugin-chai-friendly/-/eslint-plugin-chai-friendly-0.7.2.tgz", + "integrity": "sha512-LOIfGx5sZZ5FwM1shr2GlYAWV9Omdi+1/3byuVagvQNoGUuU0iHhp7AfjA1uR+4dJ4Isfb4+FwBJgQajIw9iAg==", + "dev": true, + "requires": {} + }, "eslint-plugin-es": { "version": "4.1.0", "resolved": "https://registry.npmjs.org/eslint-plugin-es/-/eslint-plugin-es-4.1.0.tgz", diff --git a/package.json b/package.json index c6d024a..307470b 100644 --- a/package.json +++ b/package.json @@ -12,7 +12,7 @@ "lint": "eslint --ext .js,.vue src", "lint:fix": "eslint --ext .js,.vue src --fix", "stylelint": "stylelint css/*.css css/*.scss src/**/*.scss src/**/*.vue", - "stylelint:fix": "stylelint css/*.css css/*.scss src/**/*.scss src/**/*.vue --fix", + "stylelint:fix": "stylelint css/*.css css/*.scss src/**/*.scss src/**/*.vue --fix", "test": "jest", "test:watch": "jest --watch" }, @@ -48,6 +48,7 @@ "babel-core": "^7.0.0-bridge.0", "babel-jest": "^27.5.1", "chai": "^4.3.6", + "eslint-plugin-chai-friendly": "^0.7.2", "jest": "^27.5.1", "vue-jest": "^3.0.7" }, diff --git a/src/tests/components/PersonalTotpSettings.spec.js b/src/tests/components/PersonalTotpSettings.spec.js index 4060efc..bbdeeb5 100644 --- a/src/tests/components/PersonalTotpSettings.spec.js +++ b/src/tests/components/PersonalTotpSettings.spec.js @@ -50,6 +50,6 @@ describe('PersonalTotpSettings', () => { localVue, }) - expect(settings.vm.loading).toBe(true) + expect(settings.vm.loading).to.be.false }) }) |