2018-05-23 12:26:51 +00:00
|
|
|
import './index';
|
2017-08-30 14:05:34 +00:00
|
|
|
|
2017-09-04 13:06:43 +00:00
|
|
|
describe('Client', () => {
|
|
|
|
describe('Component vnClientCard', () => {
|
|
|
|
let $componentController;
|
|
|
|
let $scope;
|
2017-10-17 12:24:40 +00:00
|
|
|
let controller;
|
2017-08-30 14:05:34 +00:00
|
|
|
|
2018-12-22 10:59:26 +00:00
|
|
|
beforeEach(ngModule('client'));
|
2017-08-30 14:05:34 +00:00
|
|
|
|
2017-09-04 13:06:43 +00:00
|
|
|
beforeEach(angular.mock.inject((_$componentController_, $rootScope) => {
|
|
|
|
$componentController = _$componentController_;
|
|
|
|
$scope = $rootScope;
|
2017-10-17 12:24:40 +00:00
|
|
|
controller = $componentController('vnClientCard', {$scope: $scope});
|
2017-09-04 13:06:43 +00:00
|
|
|
}));
|
2017-08-30 14:05:34 +00:00
|
|
|
|
2017-09-04 13:06:43 +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
|
|
|
});
|
|
|
|
});
|