Skip to content
This repository has been archived by the owner on Jul 29, 2024. It is now read-only.

Commit

Permalink
fix(docs): Change extension for docs links to .ts (#3187)
Browse files Browse the repository at this point in the history
closes #3170
  • Loading branch information
NickTomlin authored and cnishina committed Apr 29, 2016
1 parent 3083097 commit f149bd1
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion website/docgen/processors/add-links.js
Original file line number Diff line number Diff line change
Expand Up @@ -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,
Expand Down
4 changes: 2 additions & 2 deletions website/docgen/spec/add-links-spec.js
Original file line number Diff line number Diff line change
Expand Up @@ -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() {
Expand Down Expand Up @@ -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 = [
{
Expand Down

0 comments on commit f149bd1

Please sign in to comment.