From 74af5a8361f4ccb460001706ce249d50c747f361 Mon Sep 17 00:00:00 2001 From: Chocobozzz Date: Wed, 16 May 2018 19:59:21 +0200 Subject: Client E2E tests first step --- client/src/app/app-routing.module.ts | 32 +++++++++++++++--------------- client/src/environments/environment.e2e.ts | 5 +++++ client/src/environments/environment.hmr.ts | 5 +++++ client/src/environments/environment.ts | 2 +- 4 files changed, 27 insertions(+), 17 deletions(-) create mode 100644 client/src/environments/environment.e2e.ts create mode 100644 client/src/environments/environment.hmr.ts (limited to 'client/src') diff --git a/client/src/app/app-routing.module.ts b/client/src/app/app-routing.module.ts index 936912d28..46e108cc7 100644 --- a/client/src/app/app-routing.module.ts +++ b/client/src/app/app-routing.module.ts @@ -4,22 +4,22 @@ import { RouterModule, Routes } from '@angular/router' import { PreloadSelectedModulesList } from './core' const routes: Routes = [ - { - path: 'admin', - loadChildren: './+admin/admin.module#AdminModule' - }, - { - path: 'my-account', - loadChildren: './+my-account/my-account.module#MyAccountModule' - }, - { - path: 'accounts', - loadChildren: './+accounts/accounts.module#AccountsModule' - }, - { - path: 'video-channels', - loadChildren: './+video-channels/video-channels.module#VideoChannelsModule' - } + // { + // path: 'admin', + // loadChildren: './+admin/admin.module#AdminModule' + // }, + // { + // path: 'my-account', + // loadChildren: './+my-account/my-account.module#MyAccountModule' + // }, + // { + // path: 'accounts', + // loadChildren: './+accounts/accounts.module#AccountsModule' + // }, + // { + // path: 'video-channels', + // loadChildren: './+video-channels/video-channels.module#VideoChannelsModule' + // } ] @NgModule({ diff --git a/client/src/environments/environment.e2e.ts b/client/src/environments/environment.e2e.ts new file mode 100644 index 000000000..7c00e8d4f --- /dev/null +++ b/client/src/environments/environment.e2e.ts @@ -0,0 +1,5 @@ +export const environment = { + production: false, + hmr: false, + apiUrl: 'http://localhost:9001' +} diff --git a/client/src/environments/environment.hmr.ts b/client/src/environments/environment.hmr.ts new file mode 100644 index 000000000..20e2b8fcd --- /dev/null +++ b/client/src/environments/environment.hmr.ts @@ -0,0 +1,5 @@ +export const environment = { + production: false, + hmr: true, + apiUrl: 'http://localhost:9000' +} diff --git a/client/src/environments/environment.ts b/client/src/environments/environment.ts index 364da6745..5bb6f4b34 100644 --- a/client/src/environments/environment.ts +++ b/client/src/environments/environment.ts @@ -4,6 +4,6 @@ export const environment = { production: false, - hmr: true, + hmr: false, apiUrl: 'http://localhost:9000' } -- cgit v1.2.3