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 8, 2024
1 parent 19c466b commit b6df607
Showing 1 changed file with 8 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",
};

0 comments on commit b6df607

Please sign in to comment.