Skip to content

Commit

Permalink
Set e2e tests
Browse files Browse the repository at this point in the history
  • Loading branch information
maximegris committed May 5, 2017
1 parent c434f8a commit d223974
Show file tree
Hide file tree
Showing 4 changed files with 16 additions and 5 deletions.
4 changes: 2 additions & 2 deletions e2e/app.e2e-spec.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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 !');
});
});
2 changes: 1 addition & 1 deletion e2e/app.po.ts
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,6 @@ export class AngularElectronPage {
}

getParagraphText() {
return element(by.css('app-root h1')).getText();
return element(by.css('app-home h1')).getText();
}
}
8 changes: 7 additions & 1 deletion src/typings.d.ts
Original file line number Diff line number Diff line change
@@ -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;
}
7 changes: 6 additions & 1 deletion tsconfig.json
Original file line number Diff line number Diff line change
Expand Up @@ -11,8 +11,13 @@
"allowJs": true,
"target": "es5",
"paths": {
"environments": [ "./environments" ]
"environments": [
"./environments"
]
},
"types": [
"node"
],
"typeRoots": [
"node_modules/@types"
],
Expand Down

0 comments on commit d223974

Please sign in to comment.