]> git.proxmox.com Git - pve-eslint.git/blob - eslint/tests/lib/api.js
first commit
[pve-eslint.git] / eslint / tests / lib / api.js
1 /**
2 * @fileoverview Tests for api.
3 * @author Gyandeep Singh
4 */
5
6 "use strict";
7
8 const assert = require("chai").assert,
9 api = require("../../lib/api");
10
11 describe("api", () => {
12
13 it("should have RuleTester exposed", () => {
14 assert.isFunction(api.RuleTester);
15 });
16
17 it("should have CLIEngine exposed", () => {
18 assert.isFunction(api.CLIEngine);
19 });
20
21 it("should have linter exposed", () => {
22 assert.isObject(api.linter);
23 });
24
25 it("should have SourceCode exposed", () => {
26 assert.isFunction(api.SourceCode);
27 });
28 });