vnClientCard unit test

This commit is contained in:
Carlos 2017-08-30 16:05:34 +02:00
parent aeaa417a4e
commit 0461b3a429
1 changed files with 21 additions and 0 deletions

View File

@ -0,0 +1,21 @@
import './card.js';
describe('Component vnClientCard', () => {
let $componentController;
let $scope;
beforeEach(() => {
angular.mock.module('client');
});
beforeEach(angular.mock.inject(function(_$componentController_, $rootScope) {
$componentController = _$componentController_;
$scope = $scope;
}));
it('should define and set client property to null in the module instance', () => {
let controller = $componentController('vnClientCard', {$scope: $scope});
expect(controller.client).toBeDefined();
expect(controller.client).toBe(null);
});
});