Skip to content

Commit 5029c09

Browse files
Rename directive test to directive it is testing
1 parent e385a3e commit 5029c09

File tree

2 files changed

+1
-13
lines changed

2 files changed

+1
-13
lines changed

karma.conf.js

+1-1
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,7 @@ module.exports = function(config) {
2727
'src/**/*.html',
2828
'test/services/schema-form-test.js',
2929
'test/services/decorators-test.js',
30-
'test/directive-test.js',
30+
'test/directives/schema-form-test.js',
3131
],
3232

3333
// list of files to exclude

test/directive-test.js renamed to test/directives/schema-form-test.js

-12
Original file line numberDiff line numberDiff line change
@@ -10,8 +10,6 @@ describe('directive',function(){
1010
})
1111
);
1212

13-
14-
1513
var exampleSchema = {
1614
"type": "object",
1715
"properties": {
@@ -32,7 +30,6 @@ describe('directive',function(){
3230
}
3331
};
3432

35-
3633
it('should generate html and compile it',function(){
3734

3835
inject(function($compile,$rootScope){
@@ -152,7 +149,6 @@ describe('directive',function(){
152149
});
153150
});
154151

155-
156152
it('should generate html and compile it, leaving existing inputs intact',function(){
157153

158154
inject(function($compile,$rootScope){
@@ -239,7 +235,6 @@ describe('directive',function(){
239235
tmpl.children().eq(2).children().eq(0).find('button').click();
240236
scope.form[1].onClick.should.have.beenCalledOnce;
241237
});
242-
243238
});
244239

245240
it('should style submit buttons',function(){
@@ -438,7 +433,6 @@ describe('directive',function(){
438433
});
439434
});
440435

441-
442436
it('should use ng-required on required fields',function(){
443437

444438
inject(function($compile,$rootScope){
@@ -636,7 +630,6 @@ describe('directive',function(){
636630
});
637631
});
638632

639-
640633
it('should skip title if form says "notitle"',function(){
641634

642635
inject(function($compile,$rootScope){
@@ -664,7 +657,6 @@ describe('directive',function(){
664657
});
665658
});
666659

667-
668660
it('should generate checkboxes for arrays with enums',function(){
669661

670662
inject(function($compile,$rootScope){
@@ -1063,9 +1055,6 @@ describe('directive',function(){
10631055
});
10641056
});
10651057

1066-
1067-
1068-
10691058
it('should handle "action" groups, same as "section" but with a bootstrap class "btn-group"',function(){
10701059

10711060
inject(function($compile,$rootScope){
@@ -1264,7 +1253,6 @@ describe('directive',function(){
12641253
});
12651254
});
12661255

1267-
12681256
it('should render a list of subforms when schema type is array',function(){
12691257

12701258
inject(function($compile,$rootScope){

0 commit comments

Comments
 (0)