| import { waitForAsync, ComponentFixture, TestBed } from '@angular/core/testing'; |
| import { NO_ERRORS_SCHEMA } from '@angular/core'; |
| |
| import { TestingModule } from '../../../testing/testing.module'; |
| import { ResourceListComponent } from './resource-list.component'; |
| import { ResourceService } from '../shared/resource.service'; |
| |
| describe('ResourceListComponent', () => { |
| let component: ResourceListComponent; |
| let fixture: ComponentFixture<ResourceListComponent>; |
| |
| beforeEach(waitForAsync(() => { |
| TestBed.configureTestingModule({ |
| imports: [TestingModule], |
| declarations: [ResourceListComponent], |
| providers: [ResourceService], |
| schemas: [ |
| /* avoid importing modules */ |
| NO_ERRORS_SCHEMA, |
| ], |
| }).compileComponents(); |
| })); |
| |
| beforeEach(() => { |
| fixture = TestBed.createComponent(ResourceListComponent); |
| component = fixture.componentInstance; |
| fixture.detectChanges(); |
| }); |
| |
| it('should create', () => { |
| expect(component).toBeTruthy(); |
| }); |
| }); |