Merge commit '06316e17152006aa1395930ad76efb0b86d46657' as 'frontend'
This commit is contained in:
@@ -0,0 +1,46 @@
|
||||
import { ComponentFixture, TestBed } from '@angular/core/testing'
|
||||
|
||||
import { AttendenceComponent } from './attendence.component'
|
||||
import {
|
||||
MAT_DIALOG_DATA,
|
||||
MatDialogModule,
|
||||
MatDialogRef,
|
||||
} from '@angular/material/dialog'
|
||||
import { MatFormFieldModule } from '@angular/material/form-field'
|
||||
import { FormsModule, ReactiveFormsModule } from '@angular/forms'
|
||||
import { MatInputModule } from '@angular/material/input'
|
||||
import { NoopAnimationsModule } from '@angular/platform-browser/animations'
|
||||
import { GradesService } from '../grades.service'
|
||||
|
||||
xdescribe('AttendenceComponent', () => {
|
||||
let component: AttendenceComponent
|
||||
let fixture: ComponentFixture<AttendenceComponent>
|
||||
|
||||
beforeEach(async () => {
|
||||
const acMock = {}
|
||||
await TestBed.configureTestingModule({
|
||||
declarations: [AttendenceComponent],
|
||||
providers: [
|
||||
{ provide: MAT_DIALOG_DATA, useValue: {} },
|
||||
{ provide: MatDialogRef, useValue: {} },
|
||||
{ provide: GradesService, useValue: acMock },
|
||||
],
|
||||
imports: [
|
||||
MatDialogModule,
|
||||
MatFormFieldModule,
|
||||
FormsModule,
|
||||
ReactiveFormsModule,
|
||||
MatInputModule,
|
||||
NoopAnimationsModule,
|
||||
],
|
||||
}).compileComponents()
|
||||
|
||||
fixture = TestBed.createComponent(AttendenceComponent)
|
||||
component = fixture.componentInstance
|
||||
fixture.detectChanges()
|
||||
})
|
||||
|
||||
it('should create', () => {
|
||||
expect(component).toBeTruthy()
|
||||
})
|
||||
})
|
||||
Reference in New Issue
Block a user