my-input
authorDobrica Pavlinusic <dpavlin@rot13.org>
Sun, 20 Jan 2013 21:27:13 +0000 (22:27 +0100)
committerDobrica Pavlinusic <dpavlin@rot13.org>
Sun, 20 Jan 2013 21:27:13 +0000 (22:27 +0100)
test/unit/directivesSpec.js

index 6061842..e4b3545 100644 (file)
@@ -16,4 +16,18 @@ describe('directives', function() {
       });
     });
   });
+
+  describe('my-input', function() {
+    it('div+label+input', function() {
+      module(function($provide) {
+        $provide.value('version', 'TEST_VER');
+      });
+      inject(function($compile, $rootScope) {
+        var element = $compile('<div><input class="my-input" ng-model="m" placeholder="p"></input></div>')($rootScope);
+               dump(element.html());
+               console.log( element );
+        expect(element.html()).toMatch(/div.*label.*input.*div/);
+      });
+    });
+  });
 });