From 4f78fd692c0ec51241476e6be9a4df06cd62fdd6 Mon Sep 17 00:00:00 2001
From: Misko Hevery
Date: Thu, 8 Sep 2011 13:56:29 -0700
Subject: feat(forms): new and improved forms
---
docs/spec/ngdocSpec.js | 36 ++----------------------------------
1 file changed, 2 insertions(+), 34 deletions(-)
(limited to 'docs/spec')
diff --git a/docs/spec/ngdocSpec.js b/docs/spec/ngdocSpec.js
index 106fd22b..2afcc3d4 100644
--- a/docs/spec/ngdocSpec.js
+++ b/docs/spec/ngdocSpec.js
@@ -194,12 +194,12 @@ describe('ngdoc', function(){
it('should ignore nested doc widgets', function() {
expect(new Doc().markdown(
'before\n' +
- '' +
+ '' +
'\ngit bla bla\n\n' +
'')).toEqual(
'
before
\n' +
- '\n' +
+ '\n' +
'git bla bla\n' +
'\n' +
'');
@@ -543,38 +543,6 @@ describe('ngdoc', function(){
});
});
- describe('validator', function(){
- it('should format', function(){
- var doc = new Doc({
- ngdoc:'validator',
- shortName:'myValidator',
- param: [
- {name:'a'},
- {name:'b'}
- ]
- });
- doc.html_usage_validator(dom);
- expect(dom).toContain('ng:validate="myValidator:b"');
- expect(dom).toContain('angular.validator.myValidator(a, b)');
- });
- });
-
- describe('formatter', function(){
- it('should format', function(){
- var doc = new Doc({
- ngdoc:'formatter',
- shortName:'myFormatter',
- param: [
- {name:'a'},
- ]
- });
- doc.html_usage_formatter(dom);
- expect(dom).toContain('ng:format="myFormatter:a"');
- expect(dom).toContain('var userInputString = angular.formatter.myFormatter.format(modelValue, a);');
- expect(dom).toContain('var modelValue = angular.formatter.myFormatter.parse(userInputString, a);');
- });
- });
-
describe('property', function(){
it('should format', function(){
var doc = new Doc({
--
cgit v1.2.3