Skip to content

Commit

Permalink
fix test
Browse files Browse the repository at this point in the history
  • Loading branch information
jitsedesmet committed Oct 9, 2024
1 parent 8c59431 commit be89f42
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions engines/query-sparql/test/QuerySparql-test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -375,15 +375,15 @@ describe('System test: QuerySparql', () => {
const context = <any> { sources: [ store ]};
context.extensionFunctions = baseFunctions;
await expect(engine.query(baseQuery('nonExist'), context)).rejects.toThrow(
`ActorFunctionFactory_default_bus failed to handle an action`,
`Creation of function evaluator failed: no configured actor was able to evaluate function http://example.org/functions#nonExist`,
);
});

it('rejects when creator returns null', async() => {
const context = <any> { sources: [ store ]};
context.extensionFunctionCreator = () => null;
await expect(engine.query(baseQuery('nonExist'), context)).rejects.toThrow(
`ActorFunctionFactory_default_bus failed to handle an action`,
`Creation of function evaluator failed: no configured actor was able to evaluate function http://example.org/functions#nonExist`,
);
});

Expand Down

0 comments on commit be89f42

Please sign in to comment.