Skip to content
This repository has been archived by the owner on Sep 5, 2024. It is now read-only.

Commit

Permalink
test(mdSidenav): test for state of isOpen and isLockedOpen
Browse files Browse the repository at this point in the history
  • Loading branch information
rschmukler committed Jan 23, 2015
1 parent a61cd19 commit 2fc0a75
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions src/components/sidenav/sidenav.spec.js
Original file line number Diff line number Diff line change
Expand Up @@ -248,6 +248,12 @@ describe('mdSidenav', function() {
scope.$digest();
expect(instance.isOpen()).toBe(true);
expect(instance.isLockedOpen()).toBe(true);

scope.shouldOpen = false;
scope.shouldLockOpen = true;
scope.$digest();
expect(instance.isOpen()).toBe(false);
expect(instance.isLockedOpen()).toBe(true);
}));
});

Expand Down

0 comments on commit 2fc0a75

Please sign in to comment.