From a7eecb28c70ef76e4d6098b4e8b8366f817b1fee Mon Sep 17 00:00:00 2001 From: Dobrica Pavlinusic Date: Sun, 20 Jan 2013 22:27:13 +0100 Subject: [PATCH] my-input --- test/unit/directivesSpec.js | 14 ++++++++++++++ 1 file changed, 14 insertions(+) diff --git a/test/unit/directivesSpec.js b/test/unit/directivesSpec.js index 6061842..e4b3545 100644 --- a/test/unit/directivesSpec.js +++ b/test/unit/directivesSpec.js @@ -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('
')($rootScope); + dump(element.html()); + console.log( element ); + expect(element.html()).toMatch(/div.*label.*input.*div/); + }); + }); + }); }); -- 2.20.1