Skip to content

Commit 8330d23

Browse files
authored
test: add tests for config-api (#20493)
1 parent 37d6e91 commit 8330d23

1 file changed

Lines changed: 27 additions & 0 deletions

File tree

‎tests/lib/config-api.js‎

Lines changed: 27 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,27 @@
1+
/**
2+
* @fileoverview Tests for config-api.
3+
* @author Milos Djermanovic
4+
*/
5+
6+
"use strict";
7+
8+
//-----------------------------------------------------------------------------
9+
// Requirements
10+
//-----------------------------------------------------------------------------
11+
12+
const assert = require("chai").assert,
13+
api = require("../../lib/config-api");
14+
15+
//-----------------------------------------------------------------------------
16+
// Tests
17+
//-----------------------------------------------------------------------------
18+
19+
describe("config-api", () => {
20+
it("should have defineConfig exposed", () => {
21+
assert.isFunction(api.defineConfig);
22+
});
23+
24+
it("should have globalIgnores exposed", () => {
25+
assert.isFunction(api.globalIgnores);
26+
});
27+
});

0 commit comments

Comments
 (0)