-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Removed some tests which were not needed anymore
- Loading branch information
1 parent
b2e7718
commit 428b5e9
Showing
2 changed files
with
18 additions
and
64 deletions.
There are no files selected for viewing
33 changes: 18 additions & 15 deletions
33
.../components/archive-creation-start-screen/archive-creation-start-screen.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,26 @@ | ||
import { ComponentFixture, TestBed } from '@angular/core/testing'; | ||
|
||
/* @format */ | ||
import { Shallow } from 'shallow-render'; | ||
import { OnboardingModule } from '../../onboarding.module'; | ||
import { ArchiveCreationStartScreenComponent } from './archive-creation-start-screen.component'; | ||
import { HttpClientTestingModule } from '@angular/common/http/testing'; | ||
import { AccountService } from '@shared/services/account/account.service'; | ||
Check failure on line 6 in src/app/onboarding/components/archive-creation-start-screen/archive-creation-start-screen.component.spec.ts GitHub Actions / lint
|
||
|
||
const mockAccountService = { | ||
getAccount: () => ({ fullName: 'John Doe' }), | ||
}; | ||
|
||
describe('ArchiveCreationStartScreenComponent', () => { | ||
let component: ArchiveCreationStartScreenComponent; | ||
let fixture: ComponentFixture<ArchiveCreationStartScreenComponent>; | ||
let shallow: Shallow<ArchiveCreationStartScreenComponent>; | ||
|
||
beforeEach(async () => { | ||
await TestBed.configureTestingModule({ | ||
imports: [ArchiveCreationStartScreenComponent] | ||
}) | ||
.compileComponents(); | ||
|
||
fixture = TestBed.createComponent(ArchiveCreationStartScreenComponent); | ||
component = fixture.componentInstance; | ||
fixture.detectChanges(); | ||
beforeEach(() => { | ||
shallow = new Shallow(ArchiveCreationStartScreenComponent, OnboardingModule) | ||
.mock(AccountService, mockAccountService) | ||
.import(HttpClientTestingModule); | ||
}); | ||
|
||
it('should create', () => { | ||
expect(component).toBeTruthy(); | ||
it('should create', async () => { | ||
const { instance } = await shallow.render(); | ||
|
||
expect(instance).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