Skip to content

Commit 81120b3

Browse files
committed
Added tests.
1 parent b724950 commit 81120b3

File tree

2 files changed

+17
-0
lines changed

2 files changed

+17
-0
lines changed

test/specs/doxdox.js

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -46,6 +46,7 @@ describe('doxdox', () => {
4646
it('parses multiple input from array', () =>
4747
doxdox.parseInputs(['./lib/doxdox.js'], {
4848
'description': '',
49+
'ignore': [],
4950
'layout': 'markdown',
5051
'parser': 'dox',
5152
'title': 'Untitled Project'

test/specs/utils.js

Lines changed: 16 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -38,4 +38,20 @@ describe('doxdox utils', () => {
3838

3939
});
4040

41+
describe('formatPathsArrayToIgnore', () => {
42+
43+
it('convert values in array', () => {
44+
45+
assert.deepEqual(utils.formatPathsArrayToIgnore(['./src']), ['!./src']);
46+
47+
});
48+
49+
it('do nothing with empty array', () => {
50+
51+
assert.deepEqual(utils.formatPathsArrayToIgnore([]), []);
52+
53+
});
54+
55+
});
56+
4157
});

0 commit comments

Comments
 (0)