File tree 1 file changed +2
-11
lines changed
1 file changed +2
-11
lines changed Original file line number Diff line number Diff line change @@ -114,17 +114,8 @@ describe('ngdoc', function() {
114
114
function property ( name ) {
115
115
return function ( obj ) { return obj [ name ] ; } ;
116
116
}
117
- function noop ( ) { }
118
- function doc ( type , name ) {
119
- return {
120
- id : name ,
121
- ngdoc : type ,
122
- keywords : noop
123
- } ;
124
- }
125
-
126
- var dev_guide_overview = doc ( 'overview' , 'dev_guide.overview' ) ;
127
- var dev_guide_bootstrap = doc ( 'function' , 'dev_guide.bootstrap' ) ;
117
+ var dev_guide_overview = new Doc ( { ngdoc :'overview' , id :'dev_guide.overview' , text : '' } ) ;
118
+ var dev_guide_bootstrap = new Doc ( { ngdoc :'function' , id :'dev_guide.bootstrap' , text : '' } ) ;
128
119
129
120
it ( 'should put angular.fn() in front of dev_guide.overview, etc' , function ( ) {
130
121
expect ( ngdoc . metadata ( [ dev_guide_overview , dev_guide_bootstrap ] ) . map ( property ( 'id' ) ) )
You can’t perform that action at this time.
0 commit comments