Skip to content

Commit

Permalink
test: Update existing mocks to match new type
Browse files Browse the repository at this point in the history
  • Loading branch information
DafyddLlyr committed Oct 9, 2024
1 parent 257636e commit 1945d7d
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -208,6 +208,7 @@ export const mockQuestionResult: SearchResult<IndexedNode> = {
key: "data.fn",
matchIndices: [[0, 3]],
refIndex: 0,
matchValue: "colour",
};

export const mockAnswerResult: SearchResult<IndexedNode> = {
Expand All @@ -223,6 +224,7 @@ export const mockAnswerResult: SearchResult<IndexedNode> = {
key: "data.val",
matchIndices: [[0, 2]],
refIndex: 0,
matchValue: "red",
};

export const mockListRootResult: SearchResult<IndexedNode> = {
Expand Down Expand Up @@ -326,6 +328,7 @@ export const mockListRootResult: SearchResult<IndexedNode> = {
key: "data.fn",
matchIndices: [[0, 7]],
refIndex: 0,
matchValue: "listRoot",
};

export const mockListDataResult: SearchResult<IndexedNode> = {
Expand Down Expand Up @@ -467,6 +470,7 @@ export const mockListDataResult: SearchResult<IndexedNode> = {
key: "data.schema.fields.data.fn",
matchIndices: [[0, 5]],
refIndex: 1,
matchValue: "tenure",
};

export const mockListAnswerResult: SearchResult<IndexedNode> = {
Expand Down Expand Up @@ -608,6 +612,7 @@ export const mockListAnswerResult: SearchResult<IndexedNode> = {
key: "data.schema.fields.data.options.data.val",
matchIndices: [[0, 14]],
refIndex: 10,
matchValue: "tenure",
};

export const mockCalculateRootResult: SearchResult<IndexedNode> = {
Expand All @@ -630,6 +635,7 @@ export const mockCalculateRootResult: SearchResult<IndexedNode> = {
key: "data.output",
matchIndices: [[0, 14]],
refIndex: 0,
matchValue: "calculateOutput",
};

export const mockCalculateFormulaResult: SearchResult<IndexedNode> = {
Expand All @@ -652,6 +658,7 @@ export const mockCalculateFormulaResult: SearchResult<IndexedNode> = {
key: "formula",
matchIndices: [[0, 6]],
refIndex: 1,
matchValue: "formulaTwo",
};

export const mockFileUploadAndLabelResult: SearchResult<IndexedNode> = {
Expand All @@ -676,4 +683,5 @@ export const mockFileUploadAndLabelResult: SearchResult<IndexedNode> = {
key: "data.fileTypes.fn",
matchIndices: [[0, 8]],
refIndex: 0,
matchValue: "floorplan",
};
Original file line number Diff line number Diff line change
Expand Up @@ -50,6 +50,7 @@ export const results: SearchResults<IndexedNode> = [
key: "data.val",
matchIndices: [[0, 2]],
refIndex: 0,
matchValue: "india",
},
{
item: {
Expand All @@ -64,5 +65,6 @@ export const results: SearchResults<IndexedNode> = [
key: "data.val",
matchIndices: [[0, 2]],
refIndex: 0,
matchValue: "indonesia",
},
];

0 comments on commit 1945d7d

Please sign in to comment.