From 238094310694f0755e6089bf92c36d0ff55fe626 Mon Sep 17 00:00:00 2001 From: Vojta Jina Date: Thu, 19 May 2011 21:14:41 +0200 Subject: Allow "section/" links pointing to "section/index" --- docs/spec/ngdocSpec.js | 3 +++ 1 file changed, 3 insertions(+) (limited to 'docs/spec') diff --git a/docs/spec/ngdocSpec.js b/docs/spec/ngdocSpec.js index cb11c1a5..7ad364c0 100644 --- a/docs/spec/ngdocSpec.js +++ b/docs/spec/ngdocSpec.js @@ -119,6 +119,9 @@ describe('ngdoc', function(){ expect(doc.convertUrlToAbsolute('angular.widget')).toEqual('section/angular.widget'); }); + it('should change id to index if not specified', function() { + expect(doc.convertUrlToAbsolute('guide/')).toEqual('guide/index'); + }); }); describe('sorting', function(){ -- cgit v1.2.3