diff --git a/website/docgen/processors/add-links.js b/website/docgen/processors/add-links.js index cb269d0c6..6eece5f74 100644 --- a/website/docgen/processors/add-links.js +++ b/website/docgen/processors/add-links.js @@ -21,7 +21,7 @@ var addLinkToSourceCode = function(doc) { return; } var template = _.template('https://github.com/angular/protractor/blob/' + - '<%= linksHash %>/lib/<%= fileName %>.js'); + '<%= linksHash %>/lib/<%= fileName %>.ts'); doc.sourceLink = template({ linksHash: linksHash, diff --git a/website/docgen/spec/add-links-spec.js b/website/docgen/spec/add-links-spec.js index 918fcea5c..410953df5 100644 --- a/website/docgen/spec/add-links-spec.js +++ b/website/docgen/spec/add-links-spec.js @@ -22,7 +22,7 @@ describe('add-links', function() { addLinks([doc]); expect(doc.sourceLink).toBe('https://github.com/angular/protractor/' + 'blob/' + require('../../../package.json').version + '/lib/' + - 'protractor.js'); + 'protractor.ts'); }); it('should add links to types', function() { @@ -255,7 +255,7 @@ describe('add-links', function() { toBe('A promise located {@code Web Elements}.'); }); - it('should remove extraneous chatacters from @link links', function() { + it('should remove extraneous characters from @link links', function() { // Given a doc with a @link annotation. var docs = [ {