Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat(testForComponents): pass tests for all components
- Loading branch information
1 parent
470c6c5
commit 21664c9
Showing
4 changed files
with
100 additions
and
2 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,32 @@ | ||
import { RouterTestingModule } from '@angular/router/testing'; | ||
import { async, ComponentFixture, TestBed } from '@angular/core/testing'; | ||
import { HttpClientTestingModule } from '@angular/common/http/testing'; | ||
import { HttpClient } from '@angular/common/http'; | ||
import { FormsModule } from '@angular/forms'; | ||
|
||
import { Edit$PASCAL_CASE$Component } from './edit-$KEBAB_CASE$.component'; | ||
|
||
describe('Edit$PASCAL_CASE$ComponentComponent', () => { | ||
let httpClient: HttpClient; | ||
let component: Edit$PASCAL_CASE$Component; | ||
let fixture: ComponentFixture<Edit$PASCAL_CASE$Component>; | ||
|
||
beforeEach(async(() => { | ||
TestBed.configureTestingModule({ | ||
imports: [ HttpClientTestingModule, RouterTestingModule, FormsModule ], | ||
declarations: [ Edit$PASCAL_CASE$Component ] | ||
}) | ||
.compileComponents(); | ||
})); | ||
|
||
beforeEach(() => { | ||
httpClient = TestBed.get(HttpClient); | ||
fixture = TestBed.createComponent(Edit$PASCAL_CASE$Component); | ||
component = fixture.componentInstance; | ||
fixture.detectChanges(); | ||
}); | ||
|
||
it('should create', () => { | ||
expect(component).toBeTruthy(); | ||
}); | ||
}); |
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 |
---|---|---|
@@ -0,0 +1,33 @@ | ||
import { async, ComponentFixture, TestBed } from '@angular/core/testing'; | ||
import { HttpClientTestingModule } from '@angular/common/http/testing'; | ||
import { HttpClient } from '@angular/common/http'; | ||
import { RouterModule } from '@angular/router'; | ||
import { FormsModule } from '@angular/forms'; | ||
import { RouterTestingModule } from '@angular/router/testing'; | ||
|
||
import { New$PASCAL_CASE$Component } from './new-$KEBAB_CASE$.component'; | ||
|
||
describe('New$PASCAL_CASE$ComponentComponent', () => { | ||
let httpClient: HttpClient; | ||
let component: New$PASCAL_CASE$Component; | ||
let fixture: ComponentFixture<New$PASCAL_CASE$Component>; | ||
|
||
beforeEach(async(() => { | ||
TestBed.configureTestingModule({ | ||
imports: [ HttpClientTestingModule, RouterTestingModule, FormsModule ], | ||
declarations: [ New$PASCAL_CASE$Component ] | ||
}) | ||
.compileComponents(); | ||
})); | ||
|
||
beforeEach(() => { | ||
httpClient = TestBed.get(HttpClient); | ||
fixture = TestBed.createComponent(New$PASCAL_CASE$Component); | ||
component = fixture.componentInstance; | ||
fixture.detectChanges(); | ||
}); | ||
|
||
it('should create', () => { | ||
expect(component).toBeTruthy(); | ||
}); | ||
}); |
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 +1,33 @@ | ||
|
||
import { async, ComponentFixture, TestBed } from '@angular/core/testing'; | ||
import { HttpClientTestingModule } from '@angular/common/http/testing'; | ||
import { HttpClient } from '@angular/common/http'; | ||
import { RouterTestingModule } from '@angular/router/testing'; | ||
import { FormsModule } from '@angular/forms'; | ||
|
||
import { Show$PASCAL_CASE$Component } from './show-$KEBAB_CASE$.component'; | ||
|
||
describe('Show$PASCAL_CASE$ComponentComponent', () => { | ||
let httpClient: HttpClient; | ||
let component: Show$PASCAL_CASE$Component; | ||
let fixture: ComponentFixture<Show$PASCAL_CASE$Component>; | ||
|
||
beforeEach(async(() => { | ||
TestBed.configureTestingModule({ | ||
imports: [ HttpClientTestingModule, RouterTestingModule, FormsModule ], | ||
declarations: [ Show$PASCAL_CASE$Component ] | ||
}) | ||
.compileComponents(); | ||
})); | ||
|
||
beforeEach(() => { | ||
httpClient = TestBed.get(HttpClient); | ||
fixture = TestBed.createComponent(Show$PASCAL_CASE$Component); | ||
component = fixture.componentInstance; | ||
fixture.detectChanges(); | ||
}); | ||
|
||
it('should create', () => { | ||
expect(component).toBeTruthy(); | ||
}); | ||
}); |