-
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #72 from SwimResults/develop
`Patch: ` stop users from being logged out
- Loading branch information
Showing
17 changed files
with
397 additions
and
349 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,41 +1,43 @@ | ||
import { TestBed } from '@angular/core/testing'; | ||
import { AppComponent } from './app.component'; | ||
import {TestBed} from '@angular/core/testing'; | ||
import {AppComponent} from './app.component'; | ||
import {HttpClientTestingModule} from "@angular/common/http/testing"; | ||
import {RouterTestingModule} from "@angular/router/testing"; | ||
import {ElementsModule} from "./shared/elements/elements.module"; | ||
import {LayoutModule} from "./shared/layout/layout.module"; | ||
import {TranslateModule} from "@ngx-translate/core"; | ||
import {OAuthModule} from "angular-oauth2-oidc"; | ||
|
||
describe('AppComponent', () => { | ||
beforeEach(async () => { | ||
await TestBed.configureTestingModule({ | ||
declarations: [ | ||
AppComponent | ||
], | ||
imports: [ | ||
HttpClientTestingModule, | ||
RouterTestingModule, | ||
ElementsModule, | ||
LayoutModule, | ||
TranslateModule.forRoot() | ||
] | ||
}).compileComponents(); | ||
}); | ||
beforeEach(async () => { | ||
await TestBed.configureTestingModule({ | ||
declarations: [ | ||
AppComponent | ||
], | ||
imports: [ | ||
HttpClientTestingModule, | ||
RouterTestingModule, | ||
ElementsModule, | ||
LayoutModule, | ||
TranslateModule.forRoot(), | ||
OAuthModule.forRoot() | ||
] | ||
}).compileComponents(); | ||
}); | ||
|
||
it('should create the app', () => { | ||
const fixture = TestBed.createComponent(AppComponent); | ||
const app = fixture.componentInstance; | ||
expect(app).toBeTruthy(); | ||
}); | ||
it('should create the app', () => { | ||
const fixture = TestBed.createComponent(AppComponent); | ||
const app = fixture.componentInstance; | ||
expect(app).toBeTruthy(); | ||
}); | ||
|
||
it(`should have as title 'swimresults'`, () => { | ||
const fixture = TestBed.createComponent(AppComponent); | ||
const app = fixture.componentInstance; | ||
expect(app.title).toEqual('swimresults'); | ||
}); | ||
it(`should have as title 'swimresults'`, () => { | ||
const fixture = TestBed.createComponent(AppComponent); | ||
const app = fixture.componentInstance; | ||
expect(app.title).toEqual('swimresults'); | ||
}); | ||
|
||
it('should render title', () => { | ||
const fixture = TestBed.createComponent(AppComponent); | ||
fixture.detectChanges(); | ||
}); | ||
it('should render title', () => { | ||
const fixture = TestBed.createComponent(AppComponent); | ||
fixture.detectChanges(); | ||
}); | ||
}); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
42 changes: 22 additions & 20 deletions
42
src/app/content/account/pages/user-profile/user-profile.component.spec.ts
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,29 +1,31 @@ | ||
import { ComponentFixture, TestBed } from '@angular/core/testing'; | ||
import {ComponentFixture, TestBed} from '@angular/core/testing'; | ||
|
||
import { UserProfileComponent } from './user-profile.component'; | ||
import {UserProfileComponent} from './user-profile.component'; | ||
import {AccountModule} from "../../account.module"; | ||
import {TranslateModule} from "@ngx-translate/core"; | ||
import {OAuthModule} from "angular-oauth2-oidc"; | ||
|
||
describe('UserProfileComponent', () => { | ||
let component: UserProfileComponent; | ||
let fixture: ComponentFixture<UserProfileComponent>; | ||
let component: UserProfileComponent; | ||
let fixture: ComponentFixture<UserProfileComponent>; | ||
|
||
beforeEach(async () => { | ||
await TestBed.configureTestingModule({ | ||
declarations: [ UserProfileComponent ], | ||
imports: [ | ||
AccountModule, | ||
TranslateModule.forRoot() | ||
] | ||
}) | ||
.compileComponents(); | ||
beforeEach(async () => { | ||
await TestBed.configureTestingModule({ | ||
declarations: [UserProfileComponent], | ||
imports: [ | ||
AccountModule, | ||
TranslateModule.forRoot(), | ||
OAuthModule.forRoot() | ||
] | ||
}) | ||
.compileComponents(); | ||
|
||
fixture = TestBed.createComponent(UserProfileComponent); | ||
component = fixture.componentInstance; | ||
fixture.detectChanges(); | ||
}); | ||
fixture = TestBed.createComponent(UserProfileComponent); | ||
component = fixture.componentInstance; | ||
fixture.detectChanges(); | ||
}); | ||
|
||
it('should create', () => { | ||
expect(component).toBeTruthy(); | ||
}); | ||
it('should create', () => { | ||
expect(component).toBeTruthy(); | ||
}); | ||
}); |
46 changes: 24 additions & 22 deletions
46
src/app/content/athletes/components/athlete-list-view/athlete-list-view.component.spec.ts
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,33 +1,35 @@ | ||
import { ComponentFixture, TestBed } from '@angular/core/testing'; | ||
import {ComponentFixture, TestBed} from '@angular/core/testing'; | ||
|
||
import { AthleteListViewComponent } from './athlete-list-view.component'; | ||
import {AthleteListViewComponent} from './athlete-list-view.component'; | ||
import {HttpClientTestingModule} from "@angular/common/http/testing"; | ||
import {AthletesModule} from "../../athletes.module"; | ||
import {TranslateModule} from "@ngx-translate/core"; | ||
import {RouterTestingModule} from "@angular/router/testing"; | ||
import {OAuthModule} from "angular-oauth2-oidc"; | ||
|
||
describe('AthleteListViewComponent', () => { | ||
let component: AthleteListViewComponent; | ||
let fixture: ComponentFixture<AthleteListViewComponent>; | ||
let component: AthleteListViewComponent; | ||
let fixture: ComponentFixture<AthleteListViewComponent>; | ||
|
||
beforeEach(async () => { | ||
await TestBed.configureTestingModule({ | ||
declarations: [ AthleteListViewComponent ], | ||
imports: [ | ||
HttpClientTestingModule, | ||
AthletesModule, | ||
TranslateModule.forRoot(), | ||
RouterTestingModule | ||
] | ||
}) | ||
.compileComponents(); | ||
beforeEach(async () => { | ||
await TestBed.configureTestingModule({ | ||
declarations: [AthleteListViewComponent], | ||
imports: [ | ||
HttpClientTestingModule, | ||
AthletesModule, | ||
TranslateModule.forRoot(), | ||
RouterTestingModule, | ||
OAuthModule.forRoot() | ||
] | ||
}) | ||
.compileComponents(); | ||
|
||
fixture = TestBed.createComponent(AthleteListViewComponent); | ||
component = fixture.componentInstance; | ||
fixture.detectChanges(); | ||
}); | ||
fixture = TestBed.createComponent(AthleteListViewComponent); | ||
component = fixture.componentInstance; | ||
fixture.detectChanges(); | ||
}); | ||
|
||
it('should create', () => { | ||
expect(component).toBeTruthy(); | ||
}); | ||
it('should create', () => { | ||
expect(component).toBeTruthy(); | ||
}); | ||
}); |
49 changes: 26 additions & 23 deletions
49
src/app/content/athletes/pages/page-athletes-event/page-athletes-event.component.spec.ts
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,35 +1,38 @@ | ||
import { ComponentFixture, TestBed } from '@angular/core/testing'; | ||
import {ComponentFixture, TestBed} from '@angular/core/testing'; | ||
|
||
import { PageAthletesEventComponent } from './page-athletes-event.component'; | ||
import {PageAthletesEventComponent} from './page-athletes-event.component'; | ||
import {HttpClientTestingModule} from "@angular/common/http/testing"; | ||
import {ElementsModule} from "../../../../shared/elements/elements.module"; | ||
import {RouterTestingModule} from "@angular/router/testing"; | ||
import {AthletesModule} from "../../athletes.module"; | ||
import {TranslateModule} from "@ngx-translate/core"; | ||
import {OAuthModule} from "angular-oauth2-oidc"; | ||
|
||
describe('PageAthletesEventComponent', () => { | ||
let component: PageAthletesEventComponent; | ||
let fixture: ComponentFixture<PageAthletesEventComponent>; | ||
let component: PageAthletesEventComponent; | ||
let fixture: ComponentFixture<PageAthletesEventComponent>; | ||
|
||
beforeEach(async () => { | ||
await TestBed.configureTestingModule({ | ||
declarations: [ PageAthletesEventComponent ], | ||
imports: [ | ||
ElementsModule, | ||
RouterTestingModule, | ||
HttpClientTestingModule, | ||
AthletesModule, | ||
TranslateModule.forRoot() | ||
] | ||
}) | ||
.compileComponents(); | ||
beforeEach(async () => { | ||
await TestBed.configureTestingModule({ | ||
declarations: [PageAthletesEventComponent], | ||
imports: [ | ||
ElementsModule, | ||
RouterTestingModule, | ||
HttpClientTestingModule, | ||
AthletesModule, | ||
TranslateModule.forRoot(), | ||
OAuthModule.forRoot() | ||
|
||
fixture = TestBed.createComponent(PageAthletesEventComponent); | ||
component = fixture.componentInstance; | ||
fixture.detectChanges(); | ||
}); | ||
] | ||
}) | ||
.compileComponents(); | ||
|
||
it('should create', () => { | ||
expect(component).toBeTruthy(); | ||
}); | ||
fixture = TestBed.createComponent(PageAthletesEventComponent); | ||
component = fixture.componentInstance; | ||
fixture.detectChanges(); | ||
}); | ||
|
||
it('should create', () => { | ||
expect(component).toBeTruthy(); | ||
}); | ||
}); |
Oops, something went wrong.