diff --git a/client/client/src/card/card.spec.js b/client/client/src/card/card.spec.js new file mode 100644 index 000000000..da1b4ea45 --- /dev/null +++ b/client/client/src/card/card.spec.js @@ -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); + }); +});