-
Notifications
You must be signed in to change notification settings - Fork 2
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
b8e190b
commit ecb814d
Showing
4 changed files
with
38 additions
and
30 deletions.
There are no files selected for viewing
3 changes: 2 additions & 1 deletion
3
frontend/src/app/corpus-definitions/corpus-definition.service.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
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
34 changes: 19 additions & 15 deletions
34
frontend/src/app/corpus-definitions/form/upload-sample/upload-sample.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,23 +1,27 @@ | ||
import { ComponentFixture, TestBed } from '@angular/core/testing'; | ||
|
||
import { UploadSampleComponent } from './upload-sample.component'; | ||
import { HttpClientTestingModule } from '@angular/common/http/testing'; | ||
import { CorpusDefinitionService } from 'app/corpus-definitions/corpus-definition.service'; | ||
import { SlugifyPipe } from '@shared/pipes/slugify.pipe'; | ||
|
||
describe('UploadSampleComponent', () => { | ||
let component: UploadSampleComponent; | ||
let fixture: ComponentFixture<UploadSampleComponent>; | ||
let component: UploadSampleComponent; | ||
let fixture: ComponentFixture<UploadSampleComponent>; | ||
|
||
beforeEach(async () => { | ||
await TestBed.configureTestingModule({ | ||
declarations: [UploadSampleComponent] | ||
}) | ||
.compileComponents(); | ||
|
||
fixture = TestBed.createComponent(UploadSampleComponent); | ||
component = fixture.componentInstance; | ||
fixture.detectChanges(); | ||
}); | ||
beforeEach(async () => { | ||
await TestBed.configureTestingModule({ | ||
declarations: [UploadSampleComponent], | ||
imports: [HttpClientTestingModule], | ||
providers: [CorpusDefinitionService, SlugifyPipe], | ||
}).compileComponents(); | ||
|
||
it('should create', () => { | ||
expect(component).toBeTruthy(); | ||
}); | ||
fixture = TestBed.createComponent(UploadSampleComponent); | ||
component = fixture.componentInstance; | ||
fixture.detectChanges(); | ||
}); | ||
|
||
it('should create', () => { | ||
expect(component).toBeTruthy(); | ||
}); | ||
}); |