Chore: refactor loading stuff to be more DRY
This commit is contained in:
@@ -71,6 +71,14 @@ describe('DocumentCardLargeComponent', () => {
|
||||
component = fixture.componentInstance
|
||||
component.document = doc
|
||||
fixture.detectChanges()
|
||||
jest.useFakeTimers()
|
||||
})
|
||||
|
||||
it('should show the card', () => {
|
||||
expect(component.show).toBeFalsy()
|
||||
component.ngAfterViewInit()
|
||||
jest.advanceTimersByTime(100)
|
||||
expect(component.show).toBeTruthy()
|
||||
})
|
||||
|
||||
it('should display a document', () => {
|
||||
|
||||
Reference in New Issue
Block a user