aboutsummaryrefslogtreecommitdiffstats
path: root/docs/spec
diff options
context:
space:
mode:
authorMatias Niemelä2013-05-20 21:00:12 -0400
committerMisko Hevery2013-05-30 21:42:41 -0700
commit21c70729d9269de85df3434c431c2f18995b0f7b (patch)
treea54c53e0983e796a3b50647307d3ae89aca4a788 /docs/spec
parente46100f7097d9a8f174bdb9e15d4c6098395c3f2 (diff)
downloadangular.js-21c70729d9269de85df3434c431c2f18995b0f7b.tar.bz2
feat(ngdocs): provide support for inline variable hinting
Diffstat (limited to 'docs/spec')
-rw-r--r--docs/spec/ngdocSpec.js5
1 files changed, 5 insertions, 0 deletions
diff --git a/docs/spec/ngdocSpec.js b/docs/spec/ngdocSpec.js
index 3cd9834b..9eed24ca 100644
--- a/docs/spec/ngdocSpec.js
+++ b/docs/spec/ngdocSpec.js
@@ -150,6 +150,11 @@ describe('ngdoc', function() {
toMatch('</pre>\n\n<h1 id="one">One</h1>\n\n<pre');
});
+ it('should replace inline variable type hints', function() {
+ expect(new Doc().markdown('{@type string}')).
+ toMatch(/<a\s+.*?class=".*?type-hint type-hint-string.*?".*?>/);
+ });
+
it('should ignore nested doc widgets', function() {
expect(new Doc().markdown(
'before<div class="tabbable">\n' +