Fixes unit tests

This commit is contained in:
Aaron Louie 2020-12-04 10:21:30 -05:00
parent 8fe4aefa6b
commit 270fd48e77
2 changed files with 14 additions and 10 deletions

View File

@ -1,6 +1,7 @@
import {ComponentFixture, TestBed} from '@angular/core/testing';
import {RectangleDatamatrixRectangularComponent} from './rectangle-datamatrix-rectangular.component';
import {labelLayouts} from '../../../config/defaults';
import {mockSample} from "../../../testing/sample.mock";
describe('RectangleDatamatrixRectangularComponent', () => {
let component: RectangleDatamatrixRectangularComponent;
@ -16,6 +17,8 @@ describe('RectangleDatamatrixRectangularComponent', () => {
beforeEach(() => {
fixture = TestBed.createComponent(RectangleDatamatrixRectangularComponent);
component = fixture.componentInstance;
component.sample = mockSample;
component.labelLayout = labelLayouts.rectangle_datamatrixrectangular;
fixture.detectChanges();
});

View File

@ -1,7 +1,7 @@
import {ComponentFixture, TestBed} from '@angular/core/testing';
import {mockSample} from '../../../testing/sample.mock';
import {RectangleDatamatrixComponent} from './rectangle-datamatrix.component';
import {labelLayouts} from '../../../config/defaults';
describe('RectangleDatamatrixComponent', () => {
let component: RectangleDatamatrixComponent;
@ -18,6 +18,7 @@ describe('RectangleDatamatrixComponent', () => {
fixture = TestBed.createComponent(RectangleDatamatrixComponent);
component = fixture.componentInstance;
component.sample = mockSample;
component.labelLayout = labelLayouts.rectangle_datamatrix;
fixture.detectChanges();
});