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

fix(docs): Change extension for docs links to .ts #3187

Merged
merged 1 commit into from
Apr 29, 2016
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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