Skip to content

Commit

Permalink
test(modal): add tests for global options
Browse files Browse the repository at this point in the history
  • Loading branch information
pkozlowski-opensource committed Feb 9, 2013
1 parent acaf72b commit a2a8f34
Showing 1 changed file with 10 additions and 0 deletions.
10 changes: 10 additions & 0 deletions src/modal/test/modalSpec.js → src/modal/test/modal.spec.js
Original file line number Diff line number Diff line change
Expand Up @@ -91,5 +91,15 @@ describe('modal', function() {
$(".modal-backdrop").click();
expect(elm).not.toHaveClass('in');
});

describe('global config options', function () {

it('should allow seting global configuration options', inject(function (modalConfig) {
modalConfig.backdrop = false;
var elm = $compile("<div modal='true'></div>")(scope);
scope.$digest();
expect($(".modal-backdrop").length).toBe(0);
}));
});
});

0 comments on commit a2a8f34

Please sign in to comment.