Skip to content

Commit

Permalink
fix: remaning tests
Browse files Browse the repository at this point in the history
  • Loading branch information
felixroos committed Feb 17, 2020
1 parent ed2e29c commit 578ca2e
Show file tree
Hide file tree
Showing 6 changed files with 15 additions and 9 deletions.
2 changes: 1 addition & 1 deletion packages/data/src/lib/crud/crud.component.spec.ts
Expand Up @@ -12,7 +12,7 @@ import {
TypeConfigService,
ModelConfigService,
HistoryService
} from '@ec.components/data';
} from '../../public_api';
import { EntryActionbarComponent } from '../entry-actionbar/entry-actionbar.component';
import { EntryListSelectComponent } from '../entry-list-select/entry-list-select.component';
import { EntryListPopComponent } from '../entry-list-pop/entry-list-pop.component';
Expand Down
@@ -1,7 +1,7 @@
import { async, ComponentFixture, TestBed } from '@angular/core/testing';
import { LocationPickerComponent } from './location-picker.component';
import { RouterTestingModule } from '@angular/router/testing';
import { LocationMapComponent, LocationSearchComponent, GeocodeService } from '@ec.components/location';
import { LocationMapComponent, LocationSearchComponent, GeocodeService } from '../public_api';
import { CommonModule } from '@angular/common';
import { ReactiveFormsModule } from '@angular/forms';
import { UiModule } from '@ec.components/ui';
Expand Down
@@ -1,13 +1,18 @@
import { async, ComponentFixture, TestBed } from '@angular/core/testing';
import { mediumModuleConfig } from './medium-editor.module';

import { MediumEditorComponent } from './medium-editor.component';
import { CommonModule } from '@angular/common';

describe('MediumEditorComponent', () => {
let component: MediumEditorComponent;
let fixture: ComponentFixture<MediumEditorComponent>;

beforeEach(async(() => {
TestBed.configureTestingModule(mediumModuleConfig).compileComponents();
TestBed.configureTestingModule({
imports: [CommonModule],
declarations: [MediumEditorComponent],
providers: [],
}).compileComponents();
}));

beforeEach(() => {
Expand Down
5 changes: 3 additions & 2 deletions packages/tinymce/src/lib/tinymce/tinymce.component.spec.ts
@@ -1,14 +1,15 @@
import { async, ComponentFixture, TestBed } from '@angular/core/testing';

import { TinymceComponent } from './tinymce.component';
import { tinymceModuleConfig } from '../tinymce.module';

describe('TinymceComponent', () => {
let component: TinymceComponent;
let fixture: ComponentFixture<TinymceComponent>;

beforeEach(async(() => {
TestBed.configureTestingModule(tinymceModuleConfig).compileComponents();
TestBed.configureTestingModule({
declarations: [TinymceComponent],
}).compileComponents();
}));

beforeEach(() => {
Expand Down
4 changes: 2 additions & 2 deletions packages/ui/src/lib/list/list.component.spec.ts
@@ -1,5 +1,4 @@
import { async, ComponentFixture, TestBed } from '@angular/core/testing';
import { Item } from '@ec.components/core';
import { ListComponent } from './list.component';
import {
ListConfigService,
Expand All @@ -8,9 +7,10 @@ import {
SymbolModule,
UtilityModule, GroupPipe, SearchbarComponent, PaginationComponent, ListHeaderComponent,
ListItemsComponent
} from '@ec.components/ui';
} from '../../public_api';
import { FormsModule } from '@angular/forms';
import { CommonModule } from '@angular/common';
import { Item } from '@ec.components/core';
/* import { mocked } from '../../mocks/data'; */

describe('ListComponent', () => {
Expand Down
2 changes: 1 addition & 1 deletion packages/ui/src/lib/pop/pop.component.spec.ts
@@ -1,7 +1,7 @@
import { async, ComponentFixture, TestBed } from '@angular/core/testing';
import { PopComponent } from './pop.component';
import { CommonModule } from '@angular/common';
import { IconModule, ModalComponent, PopService } from '@ec.components/ui';
import { IconModule, ModalComponent, PopService } from '../../public_api';

describe('PopComponent', () => {
let component: PopComponent;
Expand Down

0 comments on commit 578ca2e

Please sign in to comment.