Skip to content

Instantly share code, notes, and snippets.

@dviedma
Created February 21, 2014 22:07
Show Gist options
  • Save dviedma/9144621 to your computer and use it in GitHub Desktop.
Save dviedma/9144621 to your computer and use it in GitHub Desktop.
describe("directive.calculateHeight", function(){
var $scope,
element,
$element,
$compile;
beforeEach(function(){
module("retail.navigation-ui", "string-utils");
element = angular.element("<ul calculate-height><li></li></ul>");
inject(function ($injector) {
$scope = $injector.get("$rootScope").$new();
$compile = $injector.get("$compile");
$element = $compile(element)($scope);
});
});
it("should set height of the element", function(){
expect($element[0].style.height).to.equal("90px");
});
});
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment