Skip to content

Commit 9c7bccc

Browse files
committed
Fix destroy strategy tests
1 parent 95587fd commit 9c7bccc

File tree

1 file changed

+9
-3
lines changed

1 file changed

+9
-3
lines changed

src/directives/sf-schema.directive.spec.js

Lines changed: 9 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -2271,6 +2271,14 @@ describe('directive', function() {
22712271
});
22722272

22732273
describe('destroy strategy', function() {
2274+
beforeEach(module('schemaForm'));
2275+
beforeEach(
2276+
//We don't need no sanitation. We don't need no thought control.
2277+
module(function($sceProvider) {
2278+
$sceProvider.enabled(false);
2279+
})
2280+
);
2281+
22742282
var schema = {
22752283
"type": "object",
22762284
"title": "Comment",
@@ -2364,11 +2372,9 @@ describe('destroy strategy', function() {
23642372
}
23652373
];
23662374

2367-
2368-
23692375
it('should default to "remove"', function(done) {
23702376

2371-
inject(function($compile,$rootScope) {
2377+
inject(function($compile, $rootScope) {
23722378
var scope = $rootScope.$new();
23732379
scope.person = {
23742380
"switch": true,

0 commit comments

Comments
 (0)