diff options
author | Schanzenbach, Martin <martin.schanzenbach@aisec.fraunhofer.de> | 2018-05-08 12:45:04 +0200 |
---|---|---|
committer | Schanzenbach, Martin <martin.schanzenbach@aisec.fraunhofer.de> | 2018-05-08 12:45:04 +0200 |
commit | 57e37455ca3b0810f6b3a960c6300be2486c31de (patch) | |
tree | 3c7d0d2c0c268542cb76494dae634e27071c5a84 /src/test.ts | |
parent | b9165f58f27c8209797c0acf5fd1c83124de0849 (diff) | |
download | gnunet-webui-57e37455ca3b0810f6b3a960c6300be2486c31de.tar.gz gnunet-webui-57e37455ca3b0810f6b3a960c6300be2486c31de.zip |
add hello world
Diffstat (limited to 'src/test.ts')
-rw-r--r-- | src/test.ts | 20 |
1 files changed, 20 insertions, 0 deletions
diff --git a/src/test.ts b/src/test.ts new file mode 100644 index 0000000..1631789 --- /dev/null +++ b/src/test.ts | |||
@@ -0,0 +1,20 @@ | |||
1 | // This file is required by karma.conf.js and loads recursively all the .spec and framework files | ||
2 | |||
3 | import 'zone.js/dist/zone-testing'; | ||
4 | import { getTestBed } from '@angular/core/testing'; | ||
5 | import { | ||
6 | BrowserDynamicTestingModule, | ||
7 | platformBrowserDynamicTesting | ||
8 | } from '@angular/platform-browser-dynamic/testing'; | ||
9 | |||
10 | declare const require: any; | ||
11 | |||
12 | // First, initialize the Angular testing environment. | ||
13 | getTestBed().initTestEnvironment( | ||
14 | BrowserDynamicTestingModule, | ||
15 | platformBrowserDynamicTesting() | ||
16 | ); | ||
17 | // Then we find all the tests. | ||
18 | const context = require.context('./', true, /\.spec\.ts$/); | ||
19 | // And load the modules. | ||
20 | context.keys().map(context); | ||