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(' Improve this doc');
});
it('should have an "view source" button', function() {
expect(doc.html()).
toContain(' View source');
});
});
});