describe('Directive dialog', () => {
let $scope;
let $element;
let element;
let compile;
let controller;
beforeEach(ngModule('vnCore'));
compile = _element => {
inject(($compile, $rootScope) => {
$scope = $rootScope.$new();
$scope.myDialog = controller;
element = angular.element(_element);
$compile(element)($scope);
$scope.$digest();
});
};
beforeEach(angular.mock.inject(($rootScope, $compile) => {
$element = $compile('