diff options
| author | Vojta Jina | 2013-11-21 12:41:34 -0800 |
|---|---|---|
| committer | Vojta Jina | 2013-11-21 12:41:57 -0800 |
| commit | ba1b47f85b771f8221db58a46b58429375b0ee6e (patch) | |
| tree | 5e704c6e823afda6e76a3e7b8a29191bd9fd0303 | |
| parent | 0a3481e23affe690295fc0bb26cb6597ed56155d (diff) | |
| download | angular.js-ba1b47f85b771f8221db58a46b58429375b0ee6e.tar.bz2 | |
test(docs): fix the failing specs
Because Grunt was not failing the build, we didn't noticed these failing specs.
| -rw-r--r-- | docs/spec/ngdocSpec.js | 4 | ||||
| -rw-r--r-- | docs/spec/sourceLinkSpec.js | 2 |
2 files changed, 3 insertions, 3 deletions
diff --git a/docs/spec/ngdocSpec.js b/docs/spec/ngdocSpec.js index cb3d4de0..29dd407a 100644 --- a/docs/spec/ngdocSpec.js +++ b/docs/spec/ngdocSpec.js @@ -34,8 +34,8 @@ describe('ngdoc', function() { var d1 = new Doc('@name a.b.c').parse(); var d2 = new Doc('@name a.b.ng-c').parse(); var d3 = new Doc('@name some text: more text').parse(); - expect(ngdoc.metadata([d1])[0].shortName).toEqual('c'); - expect(ngdoc.metadata([d2])[0].shortName).toEqual('ng-c'); + expect(ngdoc.metadata([d1])[0].shortName).toEqual('a.b.c'); + expect(ngdoc.metadata([d2])[0].shortName).toEqual('a.b.ng-c'); expect(ngdoc.metadata([d3])[0].shortName).toEqual('more text'); }); diff --git a/docs/spec/sourceLinkSpec.js b/docs/spec/sourceLinkSpec.js index 68d95236..b5a95e8b 100644 --- a/docs/spec/sourceLinkSpec.js +++ b/docs/spec/sourceLinkSpec.js @@ -20,7 +20,7 @@ describe('Docs Links', function() { }); it('should have an "view source" button', function() { - spyOn(gruntUtil, 'getVersion').andReturn({cdn: '1.2.299'}); + spyOn(gruntUtil, 'getVersion').andReturn({full: '1.2.299'}); expect(doc.html()). 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>'); |
