Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
  • Loading branch information
tokebe committed Oct 17, 2024
2 parents ec2a865 + f3a5165 commit 3b300fa
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 1 deletion.
2 changes: 2 additions & 0 deletions __test__/unittest/inferred_mode.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -971,6 +971,8 @@ describe('Test InferredQueryHandler', () => {
);
handler.CREATIVE_LIMIT = 1;

// @ts-expect-error don't need the whole thing
global.queryInformation = {};
const response = await handler.query();

expect(queryIsValid).toHaveBeenCalled();
Expand Down
2 changes: 1 addition & 1 deletion src/inferred_mode/inferred_mode.ts
Original file line number Diff line number Diff line change
Expand Up @@ -629,7 +629,7 @@ export default class InferredQueryHandler {
[resultID: string]: number;
} = {};
const auxGraphSuffixes: { [inferredEdgeID: string]: number } = {};
if (global.queryInformation != null) {
if (global.queryInformation !== null) {
global.queryInformation.totalRecords = {};
}

Expand Down

0 comments on commit 3b300fa

Please sign in to comment.