diff options
| author | Igor Minar | 2011-07-15 09:23:27 -0700 | 
|---|---|---|
| committer | Igor Minar | 2011-07-16 01:12:28 -0700 | 
| commit | 975aef2ad2fcb6e276244822b11ddaf39b13857c (patch) | |
| tree | 6d7ba39f5dfe29f8a4f241e5b514874488d7e2e0 | |
| parent | c863514660fed43058c93b288cdf68d476a9cabc (diff) | |
| download | angular.js-975aef2ad2fcb6e276244822b11ddaf39b13857c.tar.bz2 | |
test(ngdoc): fix failing tests
| -rw-r--r-- | docs/spec/ngdocSpec.js | 4 | ||||
| -rw-r--r-- | docs/spec/sitemapSpec.js | 2 | 
2 files changed, 3 insertions, 3 deletions
| diff --git a/docs/spec/ngdocSpec.js b/docs/spec/ngdocSpec.js index 99b3036d..66adda6d 100644 --- a/docs/spec/ngdocSpec.js +++ b/docs/spec/ngdocSpec.js @@ -316,8 +316,8 @@ describe('ngdoc', function(){          expect(doc.requires).toEqual([            {name:'$service', text:'<p>for \n<code>A</code></p>'},            {name:'$another', text:'<p>for <code>B</code></p>'}]); -        expect(doc.html()).toContain('<a href="#!angular.service.$service">$service</a>'); -        expect(doc.html()).toContain('<a href="#!angular.service.$another">$another</a>'); +        expect(doc.html()).toContain('<a href="#!/api/angular.service.$service">$service</a>'); +        expect(doc.html()).toContain('<a href="#!/api/angular.service.$another">$another</a>');          expect(doc.html()).toContain('<p>for \n<code>A</code></p>');          expect(doc.html()).toContain('<p>for <code>B</code></p>');        }); diff --git a/docs/spec/sitemapSpec.js b/docs/spec/sitemapSpec.js index c66cfd16..b14d58bf 100644 --- a/docs/spec/sitemapSpec.js +++ b/docs/spec/sitemapSpec.js @@ -12,7 +12,7 @@ describe('sitemap', function(){    });    it('should render ngdoc url', function(){ -    var map = new SiteMap([new Doc({section: 'foo', name: 'a.b.c<>\'"&'})]); +    var map = new SiteMap([new Doc({section: 'foo', id: 'a.b.c<>\'"&'})]);      expect(map.render()).toContain([        ' <url>',        '<loc>http://docs.angularjs.org/#!/foo/a.b.c<>'"&</loc>', | 
