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

25 lines
800 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
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
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
});
});