Skip to content

Commit

Permalink
Fixed broken tests.
Browse files Browse the repository at this point in the history
Closes #1035.
  • Loading branch information
imolorhe committed Nov 5, 2019
1 parent 0a56d3e commit 8fde079
Show file tree
Hide file tree
Showing 6 changed files with 57 additions and 6 deletions.
Original file line number Diff line number Diff line change
@@ -1,21 +1,33 @@
import { async, ComponentFixture, TestBed } from '@angular/core/testing';

import { SchemaFormItemInputComponent } from './schema-form-item-input.component';
import { SharedModule } from 'app/shared/shared.module';
import { FormsModule } from '@angular/forms';
import { SchemaFormModule } from '../schema-form.module';

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

beforeEach(async(() => {
TestBed.configureTestingModule({
declarations: [ SchemaFormItemInputComponent ]
imports: [
FormsModule,
SharedModule,
SchemaFormModule,
],
declarations: [
// SchemaFormItemInputComponent,
]
})
.compileComponents();
}));

beforeEach(() => {
fixture = TestBed.createComponent(SchemaFormItemInputComponent);
component = fixture.componentInstance;
component.data = {};
component.item = {};
fixture.detectChanges();
});

Expand Down
Original file line number Diff line number Diff line change
@@ -1,21 +1,35 @@
import { async, ComponentFixture, TestBed } from '@angular/core/testing';

import { SchemaFormItemListComponent } from './schema-form-item-list.component';
import { SharedModule } from 'app/shared/shared.module';
import { FormsModule } from '@angular/forms';
import { SchemaFormModule } from '../schema-form.module';
import { SchemaFormItemComponent } from '../schema-form-item/schema-form-item.component';

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

beforeEach(async(() => {
TestBed.configureTestingModule({
declarations: [ SchemaFormItemListComponent ]
imports: [
FormsModule,
SharedModule,
SchemaFormModule,
],
declarations: [
// SchemaFormItemListComponent,
// SchemaFormItemComponent
]
})
.compileComponents();
}));

beforeEach(() => {
fixture = TestBed.createComponent(SchemaFormItemListComponent);
component = fixture.componentInstance;
component.data = [];
component.item = {};
fixture.detectChanges();
});

Expand Down
Original file line number Diff line number Diff line change
@@ -1,21 +1,33 @@
import { async, ComponentFixture, TestBed } from '@angular/core/testing';

import { SchemaFormItemComponent } from './schema-form-item.component';
import { SharedModule } from 'app/shared/shared.module';
import { FormsModule } from '@angular/forms';
import { SchemaFormModule } from '../schema-form.module';

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

beforeEach(async(() => {
TestBed.configureTestingModule({
declarations: [ SchemaFormItemComponent ]
imports: [
FormsModule,
SharedModule,
SchemaFormModule,
],
declarations: [
// SchemaFormItemComponent,
]
})
.compileComponents();
}));

beforeEach(() => {
fixture = TestBed.createComponent(SchemaFormItemComponent);
component = fixture.componentInstance;
component.data = {};
component.item = {};
fixture.detectChanges();
});

Expand Down
Original file line number Diff line number Diff line change
@@ -1,21 +1,32 @@
import { async, ComponentFixture, TestBed } from '@angular/core/testing';

import { SchemaFormComponent } from './schema-form.component';
import { SharedModule } from 'app/shared/shared.module';
import { FormsModule } from '@angular/forms';
import { SchemaFormModule } from '../schema-form.module';

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

beforeEach(async(() => {
TestBed.configureTestingModule({
declarations: [ SchemaFormComponent ]
imports: [
FormsModule,
SharedModule,
SchemaFormModule,
],
declarations: [
// SchemaFormComponent,
]
})
.compileComponents();
}));

beforeEach(() => {
fixture = TestBed.createComponent(SchemaFormComponent);
component = fixture.componentInstance;
component.data = {};
fixture.detectChanges();
});

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,7 @@ import { Store } from '@ngrx/store';
import { ElectronService } from 'ngx-electron';
import { BrowserAnimationsModule } from '@angular/platform-browser/animations';
import { SharedModule } from 'app/shared/shared.module';
import { SchemaFormModule } from '../schema-form/schema-form.module';

describe('SettingsDialogComponent', () => {
let component: SettingsDialogComponent;
Expand All @@ -28,6 +29,7 @@ describe('SettingsDialogComponent', () => {
SharedModule,
ToastrModule.forRoot(),
TranslateModule.forRoot(),
SchemaFormModule,
],
providers: [
NotifyService,
Expand Down
4 changes: 2 additions & 2 deletions src/scss/components/_ui-form.scss
Original file line number Diff line number Diff line change
Expand Up @@ -17,8 +17,8 @@
position: absolute;
top: 100%;
left: 0;
background: var(--red-color);
color: white;
color: var(--red-color);
background: var(--theme-off-bg-color);
border-radius: 4px;
line-height: 1;
padding: 3px;
Expand Down

0 comments on commit 8fde079

Please sign in to comment.