UNPKG

thalassa-aqueduct

Version:

Dynamic haproxy load balancer and configuration. Part of Thalassa

14 lines (12 loc) 409 B
// jasmine matcher for expecting an element to have a css class // https://github.com/angular/angular.js/blob/master/test/matchers.js beforeEach(function() { this.addMatchers({ toHaveClass: function(cls) { this.message = function() { return "Expected '" + angular.mock.dump(this.actual) + "' to have class '" + cls + "'."; }; return this.actual.hasClass(cls); } }); });