From: Arundathi Patil Date: Tue, 18 Jun 2019 11:00:14 +0000 (+0530) Subject: Added test.ts file X-Git-Tag: 0.5.0~136^2 X-Git-Url: https://gerrit.onap.org/r/gitweb?a=commitdiff_plain;h=refs%2Fchanges%2F76%2F90076%2F1;p=ccsdk%2Fcds.git Added test.ts file Added test.ts file required to run the unit test cases. Acts as entry point. Issue-ID: CCSDK-1411 Change-Id: I96d18f49f23d7ec192e415ee7941b371c1f6d624 Signed-off-by: Arundathi Patil --- diff --git a/cds-ui/client/src/test.ts b/cds-ui/client/src/test.ts new file mode 100644 index 000000000..d9ed820e1 --- /dev/null +++ b/cds-ui/client/src/test.ts @@ -0,0 +1,41 @@ +/* +============LICENSE_START========================================== +=================================================================== +Copyright (C) 2019 IBM Intellectual Property. All rights reserved. +=================================================================== + +Unless otherwise specified, all software contained herein is licensed +under the Apache License, Version 2.0 (the License); +you may not use this software except in compliance with the License. +You may obtain a copy of the License at + + http://www.apache.org/licenses/LICENSE-2.0 + +Unless required by applicable law or agreed to in writing, software +distributed under the License is distributed on an "AS IS" BASIS, +WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +See the License for the specific language governing permissions and +limitations under the License. +============LICENSE_END============================================ +*/ + +// This file is required by karma.conf.js and loads recursively all the .spec and framework files + +import 'zone.js/dist/zone-testing'; +import { getTestBed } from '@angular/core/testing'; +import { + BrowserDynamicTestingModule, + platformBrowserDynamicTesting +} from '@angular/platform-browser-dynamic/testing'; + +declare const require: any; + +// First, initialize the Angular testing environment. +getTestBed().initTestEnvironment( + BrowserDynamicTestingModule, + platformBrowserDynamicTesting() +); +// Then we find all the tests. +const context = require.context('./', true, /\.spec\.ts$/); +// And load the modules. +context.keys().map(context);