UNPKG

pip-webui

Version:

HTML5 UI for LOB applications

32 lines (23 loc) 765 B
describe('pipCard', function () { 'use strict'; describe('directive', function () { var $compile, $rootScope, scope, element, template = '<pip-card></pip-card>'; beforeEach(module('pipLayout.Card')); beforeEach(inject(function (_$compile_, _$rootScope_) { $compile = _$compile_; $rootScope = _$rootScope_; })); beforeEach(function () { scope = $rootScope.$new(); element = $compile(template)(scope); scope.$digest(); }); it('should add class to element', function () { expect(element.hasClass('pip-card')).to.be.true; }); }); });