Fixes unit tests
This commit is contained in:
parent
8fe4aefa6b
commit
270fd48e77
|
@ -1,6 +1,7 @@
|
||||||
import { ComponentFixture, TestBed } from '@angular/core/testing';
|
import {ComponentFixture, TestBed} from '@angular/core/testing';
|
||||||
|
import {RectangleDatamatrixRectangularComponent} from './rectangle-datamatrix-rectangular.component';
|
||||||
import { RectangleDatamatrixRectangularComponent } from './rectangle-datamatrix-rectangular.component';
|
import {labelLayouts} from '../../../config/defaults';
|
||||||
|
import {mockSample} from "../../../testing/sample.mock";
|
||||||
|
|
||||||
describe('RectangleDatamatrixRectangularComponent', () => {
|
describe('RectangleDatamatrixRectangularComponent', () => {
|
||||||
let component: RectangleDatamatrixRectangularComponent;
|
let component: RectangleDatamatrixRectangularComponent;
|
||||||
|
@ -8,14 +9,16 @@ describe('RectangleDatamatrixRectangularComponent', () => {
|
||||||
|
|
||||||
beforeEach(async () => {
|
beforeEach(async () => {
|
||||||
await TestBed.configureTestingModule({
|
await TestBed.configureTestingModule({
|
||||||
declarations: [ RectangleDatamatrixRectangularComponent ]
|
declarations: [RectangleDatamatrixRectangularComponent]
|
||||||
})
|
})
|
||||||
.compileComponents();
|
.compileComponents();
|
||||||
});
|
});
|
||||||
|
|
||||||
beforeEach(() => {
|
beforeEach(() => {
|
||||||
fixture = TestBed.createComponent(RectangleDatamatrixRectangularComponent);
|
fixture = TestBed.createComponent(RectangleDatamatrixRectangularComponent);
|
||||||
component = fixture.componentInstance;
|
component = fixture.componentInstance;
|
||||||
|
component.sample = mockSample;
|
||||||
|
component.labelLayout = labelLayouts.rectangle_datamatrixrectangular;
|
||||||
fixture.detectChanges();
|
fixture.detectChanges();
|
||||||
});
|
});
|
||||||
|
|
||||||
|
|
|
@ -1,7 +1,7 @@
|
||||||
import { ComponentFixture, TestBed } from '@angular/core/testing';
|
import {ComponentFixture, TestBed} from '@angular/core/testing';
|
||||||
import {mockSample} from '../../../testing/sample.mock';
|
import {mockSample} from '../../../testing/sample.mock';
|
||||||
|
import {RectangleDatamatrixComponent} from './rectangle-datamatrix.component';
|
||||||
import { RectangleDatamatrixComponent } from './rectangle-datamatrix.component';
|
import {labelLayouts} from '../../../config/defaults';
|
||||||
|
|
||||||
describe('RectangleDatamatrixComponent', () => {
|
describe('RectangleDatamatrixComponent', () => {
|
||||||
let component: RectangleDatamatrixComponent;
|
let component: RectangleDatamatrixComponent;
|
||||||
|
@ -9,15 +9,16 @@ describe('RectangleDatamatrixComponent', () => {
|
||||||
|
|
||||||
beforeEach(async () => {
|
beforeEach(async () => {
|
||||||
await TestBed.configureTestingModule({
|
await TestBed.configureTestingModule({
|
||||||
declarations: [ RectangleDatamatrixComponent ]
|
declarations: [RectangleDatamatrixComponent]
|
||||||
})
|
})
|
||||||
.compileComponents();
|
.compileComponents();
|
||||||
});
|
});
|
||||||
|
|
||||||
beforeEach(() => {
|
beforeEach(() => {
|
||||||
fixture = TestBed.createComponent(RectangleDatamatrixComponent);
|
fixture = TestBed.createComponent(RectangleDatamatrixComponent);
|
||||||
component = fixture.componentInstance;
|
component = fixture.componentInstance;
|
||||||
component.sample = mockSample;
|
component.sample = mockSample;
|
||||||
|
component.labelLayout = labelLayouts.rectangle_datamatrix;
|
||||||
fixture.detectChanges();
|
fixture.detectChanges();
|
||||||
});
|
});
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue