Skip to content

Commit e667237

Browse files
Unit tests pass
1 parent 549f8aa commit e667237

2 files changed

Lines changed: 11 additions & 0 deletions

File tree

src/main.ts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -10,3 +10,4 @@ if (environment.production) {
1010

1111
platformBrowserDynamic().bootstrapModule(AppModule)
1212
.catch(err => console.error(err));
13+

src/test.ts

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -18,3 +18,13 @@ getTestBed().initTestEnvironment(
1818
const context = require.context('./', true, /\.spec\.ts$/);
1919
// And load the modules.
2020
context.keys().map(context);
21+
22+
global['nw'] = {
23+
process: {
24+
versions: {
25+
nw: '0.39.2',
26+
node: '12.3.1',
27+
chromium: '75.0.3770.90'
28+
}
29+
}
30+
};

0 commit comments

Comments
 (0)