]>
git.proxmox.com Git - pve-eslint.git/blob - eslint/tests/lib/api.js
2 * @fileoverview Tests for api.
3 * @author Gyandeep Singh
8 const assert
= require("chai").assert
,
9 api
= require("../../lib/api");
11 describe("api", () => {
13 it("should have RuleTester exposed", () => {
14 assert
.isFunction(api
.RuleTester
);
17 it("should have CLIEngine exposed", () => {
18 assert
.isFunction(api
.CLIEngine
);
21 it("should have linter exposed", () => {
22 assert
.isObject(api
.linter
);
25 it("should have SourceCode exposed", () => {
26 assert
.isFunction(api
.SourceCode
);