From c7052f098d47f60228c5d60ad16fcac8ce2b22c8 Mon Sep 17 00:00:00 2001 From: Igor Minar Date: Mon, 15 Nov 2010 22:51:16 -0800 Subject: add support for @deprecated ng:doc annotation + show warnings in templates --- docs/spec/collectSpec.js | 22 ++++++++++++++-------- 1 file changed, 14 insertions(+), 8 deletions(-) (limited to 'docs/spec/collectSpec.js') diff --git a/docs/spec/collectSpec.js b/docs/spec/collectSpec.js index 9de08dc8..6f82ec3d 100644 --- a/docs/spec/collectSpec.js +++ b/docs/spec/collectSpec.js @@ -182,21 +182,27 @@ describe('collect', function(){ }); }); - describe('@describe', function(){ + describe('@description', function(){ it('should support pre blocks', function(){ TAG.description(doc, 'description', '
abc
'); expect(doc.description).toEqual('
abc
'); }); - - describe('@example', function(){ - it('should not remove {{}}', function(){ - TAG.example(doc, 'example', 'text {{ abc }}'); - expect(doc.example).toEqual('text {{ abc }}'); - }); - + }); + + describe('@example', function(){ + it('should not remove {{}}', function(){ + TAG.example(doc, 'example', 'text {{ abc }}'); + expect(doc.example).toEqual('text {{ abc }}'); }); }); + describe('@deprecated', function() { + it('should parse @deprecated', function() { + TAG.deprecated(doc, 'deprecated', 'Replaced with foo.'); + expect(doc.deprecated).toBe('Replaced with foo.'); + }) + }); + }); describe('trim', function(){ -- cgit v1.2.3