mirror of
https://github.com/paperless-ngx/paperless-ngx.git
synced 2025-12-22 11:01:23 +00:00
Chore: refactor loading stuff to be more DRY
This commit is contained in:
@@ -53,9 +53,9 @@ describe('WidgetFrameComponent', () => {
|
||||
expect(fixture.debugElement.query(By.css('.spinner-border'))).not.toBeNull()
|
||||
})
|
||||
|
||||
it('should reveal', () => {
|
||||
expect(component.reveal).toBeFalsy()
|
||||
it('should show', () => {
|
||||
expect(component.show).toBeFalsy()
|
||||
jest.advanceTimersByTime(100)
|
||||
expect(component.reveal).toBeTruthy()
|
||||
expect(component.show).toBeTruthy()
|
||||
})
|
||||
})
|
||||
|
||||
Reference in New Issue
Block a user