Skip to content

Commit 7ebab55

Browse files
committed
Fixed template type tests
1 parent 9ef8600 commit 7ebab55

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

test/directives/schema-form-test.js

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1768,7 +1768,7 @@ describe('directive',function(){
17681768
});
17691769
});
17701770

1771-
it.skip('should use supplied template with template field type',function() {
1771+
it('should use supplied template with template field type',function() {
17721772

17731773
inject(function($compile, $rootScope){
17741774
var scope = $rootScope.$new();
@@ -1793,12 +1793,12 @@ describe('directive',function(){
17931793

17941794
$compile(tmpl)(scope);
17951795
$rootScope.$apply();
1796-
tmpl.children().eq(0).html().should.be.eq('<div class="ng-binding ng-scope">Hello World</div>')
1796+
tmpl.html().should.be.eq('<div sf-field="0" class="ng-scope ng-binding">Hello World</div>')
17971797

17981798
});
17991799
});
18001800

1801-
it.skip('should load template by templateUrl, with template field type',function() {
1801+
it('should load template by templateUrl, with template field type',function() {
18021802

18031803
inject(function($compile, $rootScope, $httpBackend){
18041804

@@ -1831,7 +1831,7 @@ describe('directive',function(){
18311831
$httpBackend.verifyNoOutstandingExpectation();
18321832
$httpBackend.verifyNoOutstandingRequest();
18331833

1834-
tmpl.children().eq(0).html().should.be.eq('<div class="ng-binding ng-scope">Hello World</div>')
1834+
tmpl.html().should.be.eq('<div sf-field="0" class="ng-scope ng-binding">Hello World</div>');
18351835

18361836
});
18371837
});

0 commit comments

Comments
 (0)