SO Monitoring UI
[so.git] / so-monitoring / so-monitoring-ui / src / main / frontend / src / test.ts
diff --git a/so-monitoring/so-monitoring-ui/src/main/frontend/src/test.ts b/so-monitoring/so-monitoring-ui/src/main/frontend/src/test.ts
new file mode 100644 (file)
index 0000000..b8ade8c
--- /dev/null
@@ -0,0 +1,40 @@
+/**\r
+============LICENSE_START=======================================================\r
+ Copyright (C) 2018 Ericsson. All rights reserved.\r
+================================================================================\r
+Licensed under the Apache License, Version 2.0 (the "License");\r
+you may not use this file except in compliance with the License.\r
+You may obtain a copy of the License at\r
+\r
+    http://www.apache.org/licenses/LICENSE-2.0\r
+\r
+Unless required by applicable law or agreed to in writing, software\r
+distributed under the License is distributed on an "AS IS" BASIS,\r
+WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\r
+See the License for the specific language governing permissions and\r
+ limitations under the License.\r
+\r
+SPDX-License-Identifier: Apache-2.0\r
+============LICENSE_END=========================================================\r
+\r
+@authors: ronan.kenny@ericsson.com, waqas.ikram@ericsson.com\r
+*/\r
+\r
+import 'zone.js/dist/zone-testing';\r
+import { getTestBed } from '@angular/core/testing';\r
+import {\r
+  BrowserDynamicTestingModule,\r
+  platformBrowserDynamicTesting\r
+} from '@angular/platform-browser-dynamic/testing';\r
+\r
+declare const require: any;\r
+\r
+// First, initialize the Angular testing environment.\r
+getTestBed().initTestEnvironment(\r
+  BrowserDynamicTestingModule,\r
+  platformBrowserDynamicTesting()\r
+);\r
+// Then we find all the tests.\r
+const context = require.context('./', true, /\.spec\.ts$/);\r
+// And load the modules.\r
+context.keys().map(context);\r