import { ComponentFixture, TestBed } from '@angular/core/testing'; import { YapDialogService } from '@onepoint-yap/dashboard'; import { MockYapIconComponent } from '../../../mock/components/mock-yap-icon.component'; import { MockTranslatePipe } from '../../../mock/pipe/mock-translate.pipe'; import { YapSaveQueryButtonComponent } from './save-query-button.component'; describe('YapSaveQueryButtonComponent', () => { let component: YapSaveQueryButtonComponent; let fixture: ComponentFixture; beforeEach(async () => { await TestBed.configureTestingModule({ declarations: [YapSaveQueryButtonComponent, MockTranslatePipe, MockYapIconComponent], providers: [ { provide: YapDialogService, useValue: { open: () => {} } } ] }).compileComponents(); }); beforeEach(() => { fixture = TestBed.createComponent(YapSaveQueryButtonComponent); component = fixture.componentInstance; fixture.detectChanges(); }); it('should create', () => { expect(component).toBeTruthy(); }); });