diff --git a/e2e/app.e2e-spec.ts b/e2e/app.e2e-spec.ts index 9ed003e05..c20aeb00e 100644 --- a/e2e/app.e2e-spec.ts +++ b/e2e/app.e2e-spec.ts @@ -7,8 +7,8 @@ describe('angular-electron App', () => { page = new AngularElectronPage(); }); - it('should display message saying app works', () => { + it('should display message saying App works !', () => { page.navigateTo(); - expect(page.getParagraphText()).toEqual('app works!'); + expect(page.getParagraphText()).toEqual('App works !'); }); }); diff --git a/e2e/app.po.ts b/e2e/app.po.ts index 25986b8ce..559307721 100644 --- a/e2e/app.po.ts +++ b/e2e/app.po.ts @@ -6,6 +6,6 @@ export class AngularElectronPage { } getParagraphText() { - return element(by.css('app-root h1')).getText(); + return element(by.css('app-home h1')).getText(); } } diff --git a/src/typings.d.ts b/src/typings.d.ts index ef5c7bd62..78708ff3e 100644 --- a/src/typings.d.ts +++ b/src/typings.d.ts @@ -1,5 +1,11 @@ /* SystemJS module definition */ -declare var module: NodeModule; +declare var nodeModule: NodeModule; interface NodeModule { id: string; } + +declare var window: Window; +interface Window { + process: any; + require: any; +} diff --git a/tsconfig.json b/tsconfig.json index cb61bb1d9..1030c8d43 100644 --- a/tsconfig.json +++ b/tsconfig.json @@ -11,8 +11,13 @@ "allowJs": true, "target": "es5", "paths": { - "environments": [ "./environments" ] + "environments": [ + "./environments" + ] }, + "types": [ + "node" + ], "typeRoots": [ "node_modules/@types" ],