File tree 2 files changed +4
-3
lines changed
2 files changed +4
-3
lines changed Original file line number Diff line number Diff line change @@ -20,10 +20,11 @@ describe('Docs Links', function() {
20
20
} ) ;
21
21
22
22
it ( 'should have an "view source" button' , function ( ) {
23
+ spyOn ( gruntUtil , 'getVersion' ) . andReturn ( { cdn : '1.2.299' } ) ;
24
+
23
25
expect ( doc . html ( ) ) .
24
- toContain ( '<a href="http://github.com/angular/angular.js/tree/v' + gruntUtil . getVersion ( ) . number + ' /test.js#L42" class="view-source btn btn-action"><i class="icon-zoom-in"> </i> View source</a>') ;
26
+ toContain ( '<a href="http://github.com/angular/angular.js/tree/v1.2.299 /test.js#L42" class="view-source btn btn-action"><i class="icon-zoom-in"> </i> View source</a>' ) ;
25
27
} ) ;
26
-
27
28
} ) ;
28
29
29
30
} ) ;
Original file line number Diff line number Diff line change @@ -437,7 +437,7 @@ Doc.prototype = {
437
437
if ( this . section === 'api' ) {
438
438
dom . tag ( 'a' , {
439
439
href : 'http://github.com/angular/angular.js/tree/v' +
440
- gruntUtil . getVersion ( ) . number + '/' + self . file + '#L' + self . line ,
440
+ gruntUtil . getVersion ( ) . cdn + '/' + self . file + '#L' + self . line ,
441
441
class : 'view-source btn btn-action' } , function ( dom ) {
442
442
dom . tag ( 'i' , { class :'icon-zoom-in' } , ' ' ) ;
443
443
dom . text ( ' View source' ) ;
You can’t perform that action at this time.
0 commit comments