@@ -54,52 +54,53 @@ describe('Jasmine', function() {
54
54
55
55
it ( 'add spec files with glob pattern' , function ( ) {
56
56
expect ( this . testJasmine . specFiles ) . toEqual ( [ ] ) ;
57
- this . testJasmine . addSpecFiles ( [ 'spec/*.js' ] ) ;
57
+ this . testJasmine . addSpecFiles ( [ 'spec/fixtures/jasmine_spec/ *.js' ] ) ;
58
58
expect ( this . testJasmine . specFiles . map ( basename ) ) . toEqual ( [
59
- 'command_spec.js' ,
60
- 'esm_integration_spec.js' ,
61
- 'jasmine_spec.js' ,
62
- 'load_config_spec.js' ,
63
- 'loader_spec.js' ,
59
+ 'c.js' ,
60
+ 'd.js' ,
61
+ 'e.js' ,
62
+ 'f.js' ,
64
63
] ) ;
65
64
} ) ;
66
65
67
66
it ( 'add spec files with excluded files' , function ( ) {
68
67
expect ( this . testJasmine . specFiles ) . toEqual ( [ ] ) ;
69
- this . testJasmine . addSpecFiles ( [ 'spec/*.js' , '!spec/command*' ] ) ;
68
+ this . testJasmine . addSpecFiles ( [
69
+ 'spec/fixtures/jasmine_spec/*.js' ,
70
+ '!spec/fixtures/jasmine_spec/c*'
71
+ ] ) ;
70
72
expect ( this . testJasmine . specFiles . map ( basename ) ) . toEqual ( [
71
- 'esm_integration_spec.js' ,
72
- 'jasmine_spec.js' ,
73
- 'load_config_spec.js' ,
74
- 'loader_spec.js' ,
73
+ 'd.js' ,
74
+ 'e.js' ,
75
+ 'f.js' ,
75
76
] ) ;
76
77
} ) ;
77
78
78
79
it ( 'add spec files with glob pattern to existings files' , function ( ) {
79
80
var aFile = path . join ( this . testJasmine . projectBaseDir , this . testJasmine . specDir , 'spec/command_spec.js' ) ;
80
81
this . testJasmine . specFiles = [ aFile , 'b' ] ;
81
- this . testJasmine . addSpecFiles ( [ 'spec/*.js' ] ) ;
82
+ this . testJasmine . addSpecFiles ( [ 'spec/fixtures/jasmine_spec/ *.js' ] ) ;
82
83
expect ( this . testJasmine . specFiles . map ( basename ) ) . toEqual ( [
83
84
'command_spec.js' ,
84
85
'b' ,
85
- 'esm_integration_spec .js' ,
86
- 'jasmine_spec .js' ,
87
- 'load_config_spec .js' ,
88
- 'loader_spec .js' ,
86
+ 'c .js' ,
87
+ 'd .js' ,
88
+ 'e .js' ,
89
+ 'f .js' ,
89
90
] ) ;
90
91
} ) ;
91
92
92
93
it ( 'add helper files with glob pattern to existings files' , function ( ) {
93
94
var aFile = path . join ( this . testJasmine . projectBaseDir , this . testJasmine . specDir , 'spec/command_spec.js' ) ;
94
95
this . testJasmine . helperFiles = [ aFile , 'b' ] ;
95
- this . testJasmine . addHelperFiles ( [ 'spec/*.js' ] ) ;
96
+ this . testJasmine . addHelperFiles ( [ 'spec/fixtures/jasmine_spec/ *.js' ] ) ;
96
97
expect ( this . testJasmine . helperFiles . map ( basename ) ) . toEqual ( [
97
98
'command_spec.js' ,
98
99
'b' ,
99
- 'esm_integration_spec .js' ,
100
- 'jasmine_spec .js' ,
101
- 'load_config_spec .js' ,
102
- 'loader_spec .js' ,
100
+ 'c .js' ,
101
+ 'd .js' ,
102
+ 'e .js' ,
103
+ 'f .js' ,
103
104
] ) ;
104
105
} ) ;
105
106
} ) ;
0 commit comments