aboutsummaryrefslogtreecommitdiff
path: root/test/json-schema.test.js
diff options
context:
space:
mode:
authortoasted-nutbread <toasted-nutbread@users.noreply.github.com>2024-01-27 04:01:37 -0500
committerGitHub <noreply@github.com>2024-01-27 09:01:37 +0000
commit7a142bbafd6aa6ca5fe296ba3012158d8f2e75dc (patch)
tree698be195228b5b739a2acf77e34906b56fb80eca /test/json-schema.test.js
parenta3224f688f44c9c913f32add1223e922ce88e65a (diff)
Remove unneeded eslint disables (#554)
* Install eslint-plugin-eslint-comments * Update rules, fix issues
Diffstat (limited to 'test/json-schema.test.js')
-rw-r--r--test/json-schema.test.js6
1 files changed, 4 insertions, 2 deletions
diff --git a/test/json-schema.test.js b/test/json-schema.test.js
index fcb99ee4..a3686758 100644
--- a/test/json-schema.test.js
+++ b/test/json-schema.test.js
@@ -16,8 +16,6 @@
* along with this program. If not, see <https://www.gnu.org/licenses/>.
*/
-/* eslint-disable no-multi-spaces */
-
import {describe, expect, test} from 'vitest';
import {parseJson} from '../dev/json.js';
import {JsonSchema} from '../ext/js/data/json-schema.js';
@@ -125,6 +123,7 @@ function testValidate1() {
/** */
function testValidate2() {
describe('Validate2', () => {
+ /* eslint-disable no-multi-spaces */
/** @type {{schema: import('ext/json-schema').Schema, inputs: {expected: boolean, value: unknown}[]}[]} */
const data = [
// String tests
@@ -518,6 +517,7 @@ function testValidate2() {
]
}
];
+ /* eslint-enable no-multi-spaces */
describe.each(data)('Schema %#', ({schema, inputs}) => {
test.each(inputs)(`schemaValidate(${schema}, $value) -> $expected`, ({expected, value}) => {
@@ -890,6 +890,7 @@ function testGetValidValueOrDefault1() {
/** */
function testProxy1() {
describe('Proxy1', () => {
+ /* eslint-disable no-multi-spaces */
/** @type {{schema: import('ext/json-schema').Schema, tests: {error: boolean, value?: import('ext/json-schema').Value, action: (value: import('core').SafeAny) => void}[]}[]} */
const data = [
// Object tests
@@ -1019,6 +1020,7 @@ function testProxy1() {
]
}
];
+ /* eslint-enable no-multi-spaces */
describe.each(data)('Schema %#', ({schema, tests}) => {
test.each(tests)('proxy %#', ({error, value, action}) => {