salix/modules/client/front/card/index.spec.js

23 lines
699 B
JavaScript
Raw Normal View History

2018-05-23 12:26:51 +00:00
import './index';
2017-08-30 14:05:34 +00:00
describe('Client', () => {
describe('Component vnClientCard', () => {
let $componentController;
let $scope;
let controller;
2017-08-30 14:05:34 +00:00
beforeEach(ngModule('client'));
2017-08-30 14:05:34 +00:00
beforeEach(angular.mock.inject((_$componentController_, $rootScope) => {
$componentController = _$componentController_;
$scope = $rootScope;
controller = $componentController('vnClientCard', {$scope: $scope});
}));
2017-08-30 14:05:34 +00:00
it('should define and set client property to null in the module instance', () => {
expect(controller.client).toBeDefined();
expect(controller.client).toBe(null);
});
2017-08-30 14:05:34 +00:00
});
});