Add Side Nav Item unit tests

Signed-off-by: Marliana Lara <mlara@redhat.com>
This commit is contained in:
Marliana Lara
2017-09-27 09:43:28 -04:00
parent 5c5293783d
commit 2f8155763b
7 changed files with 116 additions and 30 deletions

View File

@@ -5,7 +5,7 @@ let $document;
function atSideNavLink (scope, element, attrs, ctrl) {
scope.layoutVm = ctrl;
$document.on('click', (e) => {
$(document).on('click', (e) => {
if ($(e.target).parents('.at-Layout-side').length === 0) {
scope.$emit('clickOutsideSideNav');
}