test(ngdoc): fix failing tests

This commit is contained in:
Igor Minar 2011-07-15 09:23:27 -07:00
parent c863514660
commit 975aef2ad2
2 changed files with 3 additions and 3 deletions

View file

@ -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>');
});

View file

@ -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&lt;&gt;&apos;&quot;&amp;</loc>',