Skip to content

Commit

Permalink
Merge branch 'model-change-config' of github.com:svetoldo4444ka/ngx-b…
Browse files Browse the repository at this point in the history
…ootstrap into model-change-config
  • Loading branch information
svetoldo4444ka committed Nov 27, 2018
2 parents d305ce6 + f13ba0a commit 494edce
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions src/spec/modal-backdrop.component.spec.ts
Original file line number Diff line number Diff line change
Expand Up @@ -21,13 +21,15 @@ describe('ModalBackdropComponent tests', () => {
it('should get and set isAnimated correctly', () => {
component.isAnimated = false;
expect(component.isAnimated).toBeFalsy();

component.isAnimated = true;
expect(component.isAnimated).toBeTruthy();
});

it('should get and set isShown correctly', () => {
component.isShown = false;
expect(component.isShown).toBeFalsy();

component.isShown = true;
expect(component.isShown).toBeTruthy();
});
Expand All @@ -39,6 +41,7 @@ describe('ModalBackdropComponent tests', () => {
fixture.detectChanges();
let modalClass = component.element.nativeElement.classList.contains('show');
expect(modalClass).toBeTruthy();

component.isShown = false;
fixture.detectChanges();
modalClass = component.element.nativeElement.classList.contains('show');
Expand All @@ -53,6 +56,7 @@ describe('ModalBackdropComponent tests', () => {
fixture.detectChanges();
let modalClass = component.element.nativeElement.classList.contains('in');
expect(modalClass).toBeTruthy();

component.isShown = false;
fixture.detectChanges();
modalClass = component.element.nativeElement.classList.contains('in');
Expand Down

0 comments on commit 494edce

Please sign in to comment.