mirror of
https://github.com/Hopiu/angular.js.git
synced 2026-03-17 07:40:22 +00:00
test(ngdoc): fix failing tests
This commit is contained in:
parent
c863514660
commit
975aef2ad2
2 changed files with 3 additions and 3 deletions
|
|
@ -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>');
|
||||
});
|
||||
|
|
|
|||
|
|
@ -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>',
|
||||
|
|
|
|||
Loading…
Reference in a new issue