diff options
| author | Peter Bacon Darwin | 2014-02-12 22:47:42 +0000 |
|---|---|---|
| committer | Peter Bacon Darwin | 2014-02-16 19:03:41 +0000 |
| commit | 389d4879da4aa620ee95d789b19ff9be44eb730a (patch) | |
| tree | 93352ddc8738a975904a1774d51b93d585ca1075 /docs/spec/sourceLinkSpec.js | |
| parent | a564160511bf1bbed5a4fe5d2981fae1bb664eca (diff) | |
| download | angular.js-389d4879da4aa620ee95d789b19ff9be44eb730a.tar.bz2 | |
chore(doc-gen): new docs
chore(doc-gen): implement dgeni
Diffstat (limited to 'docs/spec/sourceLinkSpec.js')
| -rw-r--r-- | docs/spec/sourceLinkSpec.js | 30 |
1 files changed, 0 insertions, 30 deletions
diff --git a/docs/spec/sourceLinkSpec.js b/docs/spec/sourceLinkSpec.js deleted file mode 100644 index b5a95e8b..00000000 --- a/docs/spec/sourceLinkSpec.js +++ /dev/null @@ -1,30 +0,0 @@ -var ngdoc = require('../src/ngdoc.js'); -var gruntUtil = require('../../lib/grunt/utils.js'); - -describe('Docs Links', function() { - - describe('links', function() { - var doc; - - beforeEach(function() { - doc = new ngdoc.Doc("@ngdoc function\n@name ng.filter:a\n@function"); - doc.section = 'api'; - doc.file = 'test.js'; - doc.line = 42; - doc.parse(); - }); - - it('should have an "improve this doc" button', function() { - expect(doc.html()). - toContain('<a href="http://github.com/angular/angular.js/edit/master/test.js" class="improve-docs btn btn-primary"><i class="icon-edit"> </i> Improve this doc</a>'); - }); - - it('should have an "view source" button', function() { - 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>'); - }); - }); - -}); |
