pve-eslint/eslint/tests/lib/api.js
Thomas Lamprecht 609c276fc2 import 8.3.0 source
Signed-off-by: Thomas Lamprecht <t.lamprecht@proxmox.com>
2021-12-01 13:39:06 +01:00

41 lines
1.0 KiB
JavaScript

/**
* @fileoverview Tests for api.
* @author Gyandeep Singh
*/
"use strict";
//-----------------------------------------------------------------------------
// Requirements
//-----------------------------------------------------------------------------
const assert = require("chai").assert,
api = require("../../lib/api");
//-----------------------------------------------------------------------------
// Tests
//-----------------------------------------------------------------------------
describe("api", () => {
it("should have RuleTester exposed", () => {
assert.isFunction(api.RuleTester);
});
it("should not have CLIEngine exposed", () => {
assert.isUndefined(api.CLIEngine);
});
it("should not have linter exposed", () => {
assert.isUndefined(api.linter);
});
it("should have Linter exposed", () => {
assert.isFunction(api.Linter);
});
it("should have SourceCode exposed", () => {
assert.isFunction(api.SourceCode);
});
});