feat: Added file formatting
This commit is contained in:
@@ -1,44 +1,51 @@
|
||||
import { ComponentFixture, TestBed } from '@angular/core/testing';
|
||||
import { ComponentFixture, TestBed } from '@angular/core/testing'
|
||||
|
||||
import { AdminKeyComponent } from './key.component';
|
||||
import { of } from 'rxjs';
|
||||
import { AdminCommService } from '../admin-comm.service';
|
||||
import { MatFormFieldModule } from '@angular/material/form-field';
|
||||
import { MatChipsModule } from '@angular/material/chips';
|
||||
import { MatIconModule } from '@angular/material/icon';
|
||||
import { MatPaginatorModule } from '@angular/material/paginator';
|
||||
import { FormsModule } from '@angular/forms';
|
||||
import { MatProgressSpinnerModule } from '@angular/material/progress-spinner';
|
||||
import { MatTableModule } from '@angular/material/table';
|
||||
import { MatInputModule } from '@angular/material/input';
|
||||
import { NoopAnimationsModule } from '@angular/platform-browser/animations';
|
||||
import { AdminKeyComponent } from './key.component'
|
||||
import { of } from 'rxjs'
|
||||
import { AdminCommService } from '../admin-comm.service'
|
||||
import { MatFormFieldModule } from '@angular/material/form-field'
|
||||
import { MatChipsModule } from '@angular/material/chips'
|
||||
import { MatIconModule } from '@angular/material/icon'
|
||||
import { MatPaginatorModule } from '@angular/material/paginator'
|
||||
import { FormsModule } from '@angular/forms'
|
||||
import { MatProgressSpinnerModule } from '@angular/material/progress-spinner'
|
||||
import { MatTableModule } from '@angular/material/table'
|
||||
import { MatInputModule } from '@angular/material/input'
|
||||
import { NoopAnimationsModule } from '@angular/platform-browser/animations'
|
||||
|
||||
describe('AdminKeyComponent', () => {
|
||||
let component: AdminKeyComponent;
|
||||
let fixture: ComponentFixture<AdminKeyComponent>;
|
||||
let component: AdminKeyComponent
|
||||
let fixture: ComponentFixture<AdminKeyComponent>
|
||||
let acMock
|
||||
|
||||
beforeEach(async () => {
|
||||
acMock = {
|
||||
keys: {
|
||||
getKeys: jasmine.createSpy("getKeys").and.returnValue(of())
|
||||
}
|
||||
getKeys: jasmine.createSpy('getKeys').and.returnValue(of()),
|
||||
},
|
||||
}
|
||||
await TestBed.configureTestingModule({
|
||||
declarations: [AdminKeyComponent],
|
||||
providers: [
|
||||
{provide: AdminCommService, useValue: acMock}
|
||||
providers: [{ provide: AdminCommService, useValue: acMock }],
|
||||
imports: [
|
||||
MatFormFieldModule,
|
||||
MatChipsModule,
|
||||
MatIconModule,
|
||||
MatPaginatorModule,
|
||||
FormsModule,
|
||||
MatProgressSpinnerModule,
|
||||
MatTableModule,
|
||||
MatInputModule,
|
||||
NoopAnimationsModule,
|
||||
],
|
||||
imports: [MatFormFieldModule, MatChipsModule, MatIconModule, MatPaginatorModule, FormsModule, MatProgressSpinnerModule, MatTableModule, MatInputModule, NoopAnimationsModule]
|
||||
})
|
||||
.compileComponents();
|
||||
|
||||
fixture = TestBed.createComponent(AdminKeyComponent);
|
||||
component = fixture.componentInstance;
|
||||
fixture.detectChanges();
|
||||
});
|
||||
}).compileComponents()
|
||||
|
||||
fixture = TestBed.createComponent(AdminKeyComponent)
|
||||
component = fixture.componentInstance
|
||||
fixture.detectChanges()
|
||||
})
|
||||
|
||||
it('should create', () => {
|
||||
expect(component).toBeTruthy();
|
||||
});
|
||||
});
|
||||
expect(component).toBeTruthy()
|
||||
})
|
||||
})
|
||||
|
||||
Reference in New Issue
Block a user