Skip to content

Commit

Permalink
fix test
Browse files Browse the repository at this point in the history
  • Loading branch information
lukavdplas committed Nov 20, 2024
1 parent 51daf2f commit 289d128
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,8 @@ import { ComponentFixture, TestBed } from '@angular/core/testing';

import { ContentFieldComponent } from './content-field.component';
import { commonTestBed } from 'app/common-test-bed';
import { makeDocument } from 'mock-data/constructor-helpers';
import { mockField2 } from 'mock-data/corpus';

describe('ContentFieldComponent', () => {
let component: ContentFieldComponent;
Expand All @@ -12,6 +14,8 @@ describe('ContentFieldComponent', () => {

fixture = TestBed.createComponent(ContentFieldComponent);
component = fixture.componentInstance;
component.document = makeDocument({ speech: 'This is a test' });
component.field = mockField2;
fixture.detectChanges();
});

Expand Down
Original file line number Diff line number Diff line change
@@ -1,12 +1,12 @@
import { ComponentFixture, TestBed, waitForAsync } from '@angular/core/testing';
import { By } from '@angular/platform-browser';
import * as _ from 'lodash';
import { mockCorpus, mockField } from '../../mock-data/corpus';
import { mockCorpus, mockField } from '../../../mock-data/corpus';

import { commonTestBed } from '../common-test-bed';
import { commonTestBed } from '../../common-test-bed';

import { DocumentViewComponent } from './document-view.component';
import { makeDocument } from '../../mock-data/constructor-helpers';
import { makeDocument } from '../../../mock-data/constructor-helpers';

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

0 comments on commit 289d128

Please sign in to comment.