Skip to content

Commit 741b633

Browse files
committed
test(core): add structural test
1 parent 15c0f68 commit 741b633

File tree

1 file changed

+21
-0
lines changed

1 file changed

+21
-0
lines changed

@commitlint/core/src/index.test.js

Lines changed: 21 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,21 @@
1+
import test from 'ava';
2+
3+
test('exports format method', t => {
4+
const {format} = require('.');
5+
t.is(typeof format, 'function');
6+
});
7+
8+
test('exports lint method', t => {
9+
const {lint} = require('.');
10+
t.is(typeof lint, 'function');
11+
});
12+
13+
test('exports load method', t => {
14+
const {load} = require('.');
15+
t.is(typeof load, 'function');
16+
});
17+
18+
test('exports read method', t => {
19+
const {read} = require('.');
20+
t.is(typeof read, 'function');
21+
});

0 commit comments

Comments
 (0)