/
unsupported-api.js
38 lines (28 loc) · 1.08 KB
/
unsupported-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
/**
* @fileoverview Tests for unsupported-api.
* @author Nicholas C. Zakas
*/
"use strict";
//-----------------------------------------------------------------------------
// Requirements
//-----------------------------------------------------------------------------
const assert = require("chai").assert,
{ LazyLoadingRuleMap } = require("../../lib/rules/utils/lazy-loading-rule-map"),
api = require("../../lib/unsupported-api");
//-----------------------------------------------------------------------------
// Tests
//-----------------------------------------------------------------------------
describe("unsupported-api", () => {
it("should have FileEnumerator exposed", () => {
assert.isFunction(api.FileEnumerator);
});
it("should have FlatESLint exposed", () => {
assert.isFunction(api.FlatESLint);
});
it("should have FlatRuleTester exposed", () => {
assert.isFunction(api.FlatRuleTester);
});
it("should have builtinRules exposed", () => {
assert.instanceOf(api.builtinRules, LazyLoadingRuleMap);
});
});