aboutsummaryrefslogtreecommitdiffstats
path: root/cds-ui/client
diff options
context:
space:
mode:
authorDan Timoney <dtimoney@att.com>2019-06-18 15:14:53 +0000
committerGerrit Code Review <gerrit@onap.org>2019-06-18 15:14:53 +0000
commite0dc3a5fe5c427fa29a3fda8b19db874dfcdec70 (patch)
tree7deaf0dd0f8b61265be6aa3143e275e7447211aa /cds-ui/client
parente776e40c7c1690d74116509369566083c02cdcf4 (diff)
parentab4890bab82458f40d71742c6faf81631fe8a756 (diff)
Merge "Added test.ts file"
Diffstat (limited to 'cds-ui/client')
-rw-r--r--cds-ui/client/src/test.ts41
1 files changed, 41 insertions, 0 deletions
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);