Initial commit
This commit is contained in:
@@ -0,0 +1,29 @@
|
||||
import { ComponentFixture, TestBed } from '@angular/core/testing';
|
||||
|
||||
import { MenuUploadComponent } from './menu-upload.component';
|
||||
import { AdminCommService } from '../../admin-comm.service';
|
||||
import { MatDialogModule, MatDialogRef } from '@angular/material/dialog';
|
||||
|
||||
describe('MenuUploadComponent', () => {
|
||||
let component: MenuUploadComponent;
|
||||
let fixture: ComponentFixture<MenuUploadComponent>;
|
||||
|
||||
beforeEach(() => {
|
||||
const acMock = jasmine.createSpyObj('AdminCommService', ['postMenu'])
|
||||
TestBed.configureTestingModule({
|
||||
declarations: [MenuUploadComponent],
|
||||
providers: [
|
||||
{provide: AdminCommService, useValue: acMock},
|
||||
{provide: MatDialogRef, useValue: {}}
|
||||
],
|
||||
imports: [MatDialogModule]
|
||||
});
|
||||
fixture = TestBed.createComponent(MenuUploadComponent);
|
||||
component = fixture.componentInstance;
|
||||
fixture.detectChanges();
|
||||
});
|
||||
|
||||
it('should create', () => {
|
||||
expect(component).toBeTruthy();
|
||||
});
|
||||
});
|
||||
Reference in New Issue
Block a user