Skip to content

Commit 89c68aa

Browse files
committed
Added CLI flag test.
1 parent ef6188a commit 89c68aa

File tree

3 files changed

+10
-1
lines changed

3 files changed

+10
-1
lines changed

Makefile

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,7 @@ BIN=node_modules/.bin
33
test:
44
make lint
55
$(BIN)/mocha test/specs/
6+
bin/doxdox 'lib/**/*.js' --description Description --title Title --package test/fixtures/ --ignore 'lib/**/*.js' | diff test/fixtures/flags.md -
67
bin/doxdox 'lib/**/*.js' -p package.json -l markdown | diff DOCUMENTATION.md -
78

89
lint:
@@ -15,7 +16,7 @@ coverage:
1516
$(BIN)/istanbul cover $(BIN)/_mocha test/specs/ && $(BIN)/codecov
1617

1718
fixtures:
18-
bin/doxdox lib/doxdox.js --output test/fixtures/doxdox.md --package lib
19+
bin/doxdox lib/doxdox.js --output test/fixtures/doxdox.md --package test/fixtures/
1920

2021
docs:
2122
bin/doxdox 'lib/**/*.js' -p package.json -l markdown -o DOCUMENTATION.md

test/fixtures/flags.md

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,6 @@
1+
# Title
2+
3+
> Description
4+
5+
6+
*Documentation generated with [doxdox](https://github.com/neogeek/doxdox).*

test/fixtures/package.json

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,2 @@
1+
{
2+
}

0 commit comments

Comments
 (0)