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

Commit f149bd1

Browse files
NickTomlincnishina
authored andcommitted
fix(docs): Change extension for docs links to .ts (#3187)
closes #3170
1 parent 3083097 commit f149bd1

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

website/docgen/processors/add-links.js

+1-1
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,7 @@ var addLinkToSourceCode = function(doc) {
2121
return;
2222
}
2323
var template = _.template('https://github.com/angular/protractor/blob/' +
24-
'<%= linksHash %>/lib/<%= fileName %>.js');
24+
'<%= linksHash %>/lib/<%= fileName %>.ts');
2525

2626
doc.sourceLink = template({
2727
linksHash: linksHash,

website/docgen/spec/add-links-spec.js

+2-2
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,7 @@ describe('add-links', function() {
2222
addLinks([doc]);
2323
expect(doc.sourceLink).toBe('https://github.com/angular/protractor/' +
2424
'blob/' + require('../../../package.json').version + '/lib/' +
25-
'protractor.js');
25+
'protractor.ts');
2626
});
2727

2828
it('should add links to types', function() {
@@ -255,7 +255,7 @@ describe('add-links', function() {
255255
toBe('A promise located {@code Web Elements}.');
256256
});
257257

258-
it('should remove extraneous chatacters from @link links', function() {
258+
it('should remove extraneous characters from @link links', function() {
259259
// Given a doc with a @link annotation.
260260
var docs = [
261261
{

0 commit comments

Comments
 (0)