Skip to content

Commit e70833b

Browse files
Fix frontend tests
1 parent 7337796 commit e70833b

1 file changed

Lines changed: 5 additions & 10 deletions

File tree

frontend/src/app/annotate/annotation-parse-results/parse-tree-table/parse-tree-table.component.spec.ts

Lines changed: 5 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -1,17 +1,12 @@
11
import { ComponentFixture, TestBed } from '@angular/core/testing';
22

33
import { ParseTreeTableComponent } from './parse-tree-table.component';
4-
import { ParseTree, ParseTreeType } from '../types';
4+
import { TreeWithType } from '../annotation-parse-results.component';
55

6-
const mockTree: ParseTree = {
7-
type: ParseTreeType.CCG_DERIVATION,
8-
root: {
9-
type: "leaf",
10-
lem: "dog",
11-
tok: "Dog",
12-
pos: "NN",
13-
ner: "O",
14-
cat: "N"
6+
const mockTree: TreeWithType = {
7+
type: "CCG Tree",
8+
tree: {
9+
node: ["NP", "The", "the", "DT", "O", "NP"],
1510
}
1611
}
1712

0 commit comments

Comments
 (0)