]> git.proxmox.com Git - pve-eslint.git/blob - eslint/tests/conf/config-schema.js
first commit
[pve-eslint.git] / eslint / tests / conf / config-schema.js
1 /**
2 * @fileoverview Tests for config-schema.
3 * @author Evgeny Poberezkin
4 */
5
6 "use strict";
7
8 //------------------------------------------------------------------------------
9 // Requirements
10 //------------------------------------------------------------------------------
11
12 const configSchema = require("../../conf/config-schema.js"),
13 assert = require("assert");
14
15 const ajv = require("../../lib/shared/ajv")();
16
17 //------------------------------------------------------------------------------
18 // Tests
19 //------------------------------------------------------------------------------
20
21 describe("config-schema", () => {
22 it("should be valid against meta-schema", () => {
23 const valid = ajv.validateSchema(configSchema);
24
25 assert.strictEqual(valid, true);
26 });
27 });