-
-
Notifications
You must be signed in to change notification settings - Fork 4.4k
/
api.js
44 lines (33 loc) · 1.1 KB
/
api.js
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
/**
* @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 ESLint exposed", () => {
assert.isFunction(api.ESLint);
});
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);
});
});