Skip to content
This repository was archived by the owner on Apr 12, 2024. It is now read-only.

Commit ba1b47f

Browse files
committed
test(docs): fix the failing specs
Because Grunt was not failing the build, we didn't noticed these failing specs.
1 parent 0a3481e commit ba1b47f

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

docs/spec/ngdocSpec.js

+2-2
Original file line numberDiff line numberDiff line change
@@ -34,8 +34,8 @@ describe('ngdoc', function() {
3434
var d1 = new Doc('@name a.b.c').parse();
3535
var d2 = new Doc('@name a.b.ng-c').parse();
3636
var d3 = new Doc('@name some text: more text').parse();
37-
expect(ngdoc.metadata([d1])[0].shortName).toEqual('c');
38-
expect(ngdoc.metadata([d2])[0].shortName).toEqual('ng-c');
37+
expect(ngdoc.metadata([d1])[0].shortName).toEqual('a.b.c');
38+
expect(ngdoc.metadata([d2])[0].shortName).toEqual('a.b.ng-c');
3939
expect(ngdoc.metadata([d3])[0].shortName).toEqual('more text');
4040
});
4141

docs/spec/sourceLinkSpec.js

+1-1
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@ describe('Docs Links', function() {
2020
});
2121

2222
it('should have an "view source" button', function() {
23-
spyOn(gruntUtil, 'getVersion').andReturn({cdn: '1.2.299'});
23+
spyOn(gruntUtil, 'getVersion').andReturn({full: '1.2.299'});
2424

2525
expect(doc.html()).
2626
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>');

0 commit comments

Comments
 (0)