migrate angular 21 tests
This commit is contained in:
@@ -1,12 +1,15 @@
|
||||
import {ComponentFixture, TestBed} from '@angular/core/testing';
|
||||
|
||||
import {ShareDialogComponent} from './share-dialog.component';
|
||||
import QRCode from 'qrcode';
|
||||
|
||||
describe('ShareDialogComponent', () => {
|
||||
let component: ShareDialogComponent;
|
||||
let fixture: ComponentFixture<ShareDialogComponent>;
|
||||
|
||||
beforeEach(async () => {
|
||||
spyOn(QRCode, 'toDataURL').and.resolveTo('data:image/jpeg;base64,test');
|
||||
|
||||
await TestBed.configureTestingModule({
|
||||
imports: [ShareDialogComponent],
|
||||
}).compileComponents();
|
||||
|
||||
Reference in New Issue
Block a user