From d62b8407cf11cbcedfcef10001aa71af4ee4751e Mon Sep 17 00:00:00 2001
From: Vojta Jina
Date: Wed, 18 May 2011 11:48:24 +0200
Subject: Fixed couple of failing tests in docs
These tests were failing because of rewriting urls into new 'section' format,
i.e. angular.scope -> api.angular.scope
---
docs/spec/ngdocSpec.js | 12 ++++++------
1 file changed, 6 insertions(+), 6 deletions(-)
(limited to 'docs/spec')
diff --git a/docs/spec/ngdocSpec.js b/docs/spec/ngdocSpec.js
index 52b2ce03..c2fe3a4d 100644
--- a/docs/spec/ngdocSpec.js
+++ b/docs/spec/ngdocSpec.js
@@ -366,13 +366,13 @@ describe('ngdoc', function(){
'{@link angular.directive.ng:foo ng:foo}');
doc.parse();
expect(doc.description).
- toContain('foo angular.foo');
+ toContain('foo angular.foo');
expect(doc.description).
- toContain('da bar foo bar');
+ toContain('da bar foo bar');
expect(doc.description).
- toContain('dadangular.foo');
+ toContain('dadangular.foo');
expect(doc.description).
- toContain('ng:foo');
+ toContain('ng:foo');
expect(doc.description).
toContain('http://angularjs.org');
expect(doc.description).
@@ -381,10 +381,10 @@ describe('ngdoc', function(){
it('shoul support line breaks in @link', function(){
var doc = new Doc("@description " +
- '{@link\nurl\na\nb}');
+ '{@link\napi/angular.foo\na\nb}');
doc.parse();
expect(doc.description).
- toContain('a b');
+ toContain('a b');
});
});
--
cgit v1.2.3