vnClientCard unit test
This commit is contained in:
parent
aeaa417a4e
commit
0461b3a429
|
@ -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);
|
||||
});
|
||||
});
|
Loading…
Reference in New Issue