T-139: tests
This commit is contained in:
parent
5cd18dae2e
commit
7befcaa033
1 changed files with 10 additions and 4 deletions
|
|
@ -1559,15 +1559,21 @@ describe('QA round 5: CTE scope parity with DuckDB across nesting and UNION bran
|
||||||
validateError = error;
|
validateError = error;
|
||||||
}
|
}
|
||||||
expect(validateError, label).toBeInstanceOf(FeatureLibraryError);
|
expect(validateError, label).toBeInstanceOf(FeatureLibraryError);
|
||||||
|
expect((validateError as FeatureLibraryError).code, label).toBe('EXTERNAL_DATA_ACCESS');
|
||||||
|
|
||||||
const fake = createRecordingFakeExecutor();
|
const fake = createRecordingFakeExecutor();
|
||||||
await expect(
|
let execError: unknown;
|
||||||
runFeatureBatch(
|
try {
|
||||||
|
await runFeatureBatch(
|
||||||
def,
|
def,
|
||||||
{ curatedRoot: '/c', fromYear: 2021, toYear: 2021, vaultCutoffDate: '2022-01-01' },
|
{ curatedRoot: '/c', fromYear: 2021, toYear: 2021, vaultCutoffDate: '2022-01-01' },
|
||||||
fake.executor
|
fake.executor
|
||||||
)
|
);
|
||||||
).rejects.toBeInstanceOf(FeatureLibraryError);
|
} catch (error) {
|
||||||
|
execError = error;
|
||||||
|
}
|
||||||
|
expect(execError, label).toBeInstanceOf(FeatureLibraryError);
|
||||||
|
expect((execError as FeatureLibraryError).code, label).toBe('EXTERNAL_DATA_ACCESS');
|
||||||
expect(fake.calls).toHaveLength(0);
|
expect(fake.calls).toHaveLength(0);
|
||||||
}
|
}
|
||||||
});
|
});
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue