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

23 lines
699 B
JavaScript

import './index';
describe('Client', () => {
describe('Component vnClientCard', () => {
let $componentController;
let $scope;
let controller;
beforeEach(ngModule('client'));
beforeEach(angular.mock.inject((_$componentController_, $rootScope) => {
$componentController = _$componentController_;
$scope = $rootScope;
controller = $componentController('vnClientCard', {$scope: $scope});
}));
it('should define and set client property to null in the module instance', () => {
expect(controller.client).toBeDefined();
expect(controller.client).toBe(null);
});
});
});