@@ -9,21 +9,34 @@ describe('TypeDoc', function() {
9
9
it ( 'constructs' , function ( ) {
10
10
application = new TypeDoc . Application ( ) ;
11
11
} ) ;
12
- it ( 'expands input files ' , function ( ) {
12
+ it ( 'expands input directory ' , function ( ) {
13
13
var inputFiles = Path . join ( __dirname , 'converter' , 'class' ) ;
14
14
var expanded = application . expandInputFiles ( [ inputFiles ] ) ;
15
15
16
16
Assert . notEqual ( expanded . indexOf ( Path . join ( inputFiles , 'class.ts' ) ) , - 1 ) ;
17
17
Assert . equal ( expanded . indexOf ( inputFiles ) , - 1 ) ;
18
18
} ) ;
19
- it ( 'honors the exclude argument even on a fixed file list' , function ( ) {
19
+ it ( 'expands input files' , function ( ) {
20
+ var inputFiles = Path . join ( __dirname , 'converter' , 'class' , 'class.ts' ) ;
21
+ var expanded = application . expandInputFiles ( [ inputFiles ] ) ;
22
+
23
+ Assert . notEqual ( expanded . indexOf ( inputFiles ) , - 1 ) ;
24
+ } ) ;
25
+ it ( 'honors the exclude argument even on a fixed directory list' , function ( ) {
20
26
var inputFiles = Path . join ( __dirname , 'converter' , 'class' ) ;
21
27
application . options . setValue ( 'exclude' , '**/class.ts' ) ;
22
28
var expanded = application . expandInputFiles ( [ inputFiles ] ) ;
23
29
24
30
Assert . equal ( expanded . indexOf ( Path . join ( inputFiles , 'class.ts' ) ) , - 1 ) ;
25
31
Assert . equal ( expanded . indexOf ( inputFiles ) , - 1 ) ;
26
32
} ) ;
33
+ it ( 'honors the exclude argument even on a fixed file list' , function ( ) {
34
+ var inputFiles = Path . join ( __dirname , 'converter' , 'class' , 'class.ts' ) ;
35
+ application . options . setValue ( 'exclude' , '**/class.ts' ) ;
36
+ var expanded = application . expandInputFiles ( [ inputFiles ] ) ;
37
+
38
+ Assert . equal ( expanded . indexOf ( inputFiles ) , - 1 ) ;
39
+ } ) ;
27
40
it ( 'supports multiple excludes' , function ( ) {
28
41
var inputFiles = Path . join ( __dirname , 'converter' ) ;
29
42
application . options . setValue ( 'exclude' , '**/+(class|access).ts' ) ;
0 commit comments