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
|
|
|
|
2019-09-13 14:09:14 +00:00
|
|
|
beforeEach(angular.mock.module('client', $translateProvider => {
|
|
|
|
$translateProvider.translations('en', {});
|
|
|
|
}));
|
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
|
|
|
});
|
|
|
|
});
|