Skip to content

Commit

Permalink
Revert "update unit-tests for workflow to use lookup_and_score"
Browse files Browse the repository at this point in the history
This reverts commit 8ab5d5b.
  • Loading branch information
tokebe committed Aug 23, 2022
1 parent dc26727 commit 743cce0
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions __test__/unittest/utils.test.js
Original file line number Diff line number Diff line change
Expand Up @@ -40,10 +40,10 @@ describe("Test utility functions", () => {
expect(() => utils.validateWorkflow(workflow)).toThrow(WorkflowError);
})

test("Workflow wrong length", () => {
test("Workflow wrong legnth", () => {
let workflow = [];
expect(() => utils.validateWorkflow(workflow)).toThrow(WorkflowError);
workflow = [{id: 'lookup_and_score'}, {id: 'lookup_and_score'}];
workflow = [{id: 'lookup'}, {id: 'lookup'}];
expect(() => utils.validateWorkflow(workflow)).toThrow(WorkflowError);
})

Expand All @@ -54,8 +54,8 @@ describe("Test utility functions", () => {
expect(() => utils.validateWorkflow(workflow)).toThrow(WorkflowError);
})

test("No error when value is id:lookup_and_score", () => {
const workflow = [{id: 'lookup_and_score'}];
test("No error when value is id:lookup", () => {
const workflow = [{id: 'lookup'}];
expect(utils.validateWorkflow(workflow)).toEqual(undefined);
})
})
Expand Down

0 comments on commit 743cce0

Please sign in to comment.