@@ -86,7 +86,7 @@ const apiJob = {
|
||||
error_code: null,
|
||||
};
|
||||
|
||||
test('OpenAPI matches decimal-string inputs and execution response guards', async () => {
|
||||
void test('OpenAPI matches decimal-string inputs and execution response guards', async () => {
|
||||
const openapi = JSON.parse(
|
||||
await readFile(
|
||||
new URL(
|
||||
@@ -184,7 +184,7 @@ test('OpenAPI matches decimal-string inputs and execution response guards', asyn
|
||||
}
|
||||
});
|
||||
|
||||
test('currency codes are explicit and must be present in the supported currency catalog', () => {
|
||||
void test('currency codes are explicit and must be present in the supported currency catalog', () => {
|
||||
assert.equal(isSimulationCurrency('MZN'), true);
|
||||
assert.equal(isSimulationCurrency('USD'), true);
|
||||
assert.equal(isSimulationCurrency('mzn'), false);
|
||||
@@ -195,7 +195,7 @@ test('currency codes are explicit and must be present in the supported currency
|
||||
assert.equal(simulationCurrencyOptions.includes('KWD'), false);
|
||||
});
|
||||
|
||||
test('calculated values preserve exact decimal strings, including zero', () => {
|
||||
void test('calculated values preserve exact decimal strings, including zero', () => {
|
||||
assert.deepEqual(
|
||||
validateSimulationResult({
|
||||
status: 'calculated',
|
||||
@@ -209,7 +209,7 @@ test('calculated values preserve exact decimal strings, including zero', () => {
|
||||
);
|
||||
});
|
||||
|
||||
test('API v1 wire envelope preserves exact zero and validates indeterminate states', () => {
|
||||
void test('API v1 wire envelope preserves exact zero and validates indeterminate states', () => {
|
||||
assert.equal(isApiSimulationResultSnapshotV1(apiSnapshot), true);
|
||||
assert.equal(
|
||||
isApiSimulationResultSnapshotV1({
|
||||
@@ -265,7 +265,7 @@ test('API v1 wire envelope preserves exact zero and validates indeterminate stat
|
||||
);
|
||||
});
|
||||
|
||||
test('simulation creation and polling responses require a valid execution view', () => {
|
||||
void test('simulation creation and polling responses require a valid execution view', () => {
|
||||
const queuedExecution = { ...apiExecution };
|
||||
delete queuedExecution.result_snapshot;
|
||||
assert.equal(
|
||||
@@ -355,7 +355,7 @@ test('simulation creation and polling responses require a valid execution view',
|
||||
);
|
||||
});
|
||||
|
||||
test('history and encrypted-draft endpoints reject malformed envelopes', () => {
|
||||
void test('history and encrypted-draft endpoints reject malformed envelopes', () => {
|
||||
assert.equal(isApiSimulationHistoryResponseV1(apiHistory), true);
|
||||
assert.equal(
|
||||
isApiSimulationHistoryResponseV1({
|
||||
@@ -405,7 +405,7 @@ test('history and encrypted-draft endpoints reject malformed envelopes', () => {
|
||||
);
|
||||
});
|
||||
|
||||
test('questionnaire, report, job and error envelopes match their server contracts', () => {
|
||||
void test('questionnaire, report, job and error envelopes match their server contracts', () => {
|
||||
assert.equal(
|
||||
isApiQuestionnaireReadResponseV1({
|
||||
data: {
|
||||
@@ -510,7 +510,7 @@ test('questionnaire, report, job and error envelopes match their server contract
|
||||
assert.equal(isApiErrorV1({ errors: { base: 'Invalid' } }), false);
|
||||
});
|
||||
|
||||
test('wire contract guards survive a real JSON encode/decode round trip', () => {
|
||||
void test('wire contract guards survive a real JSON encode/decode round trip', () => {
|
||||
const wirePayloads = [
|
||||
[isApiSimulationReadResponseV1, { data: apiExecution }],
|
||||
[
|
||||
@@ -540,7 +540,7 @@ test('wire contract guards survive a real JSON encode/decode round trip', () =>
|
||||
}
|
||||
});
|
||||
|
||||
test('indeterminate results require missing inputs and cannot carry a numeric value', () => {
|
||||
void test('indeterminate results require missing inputs and cannot carry a numeric value', () => {
|
||||
assert.deepEqual(
|
||||
validateSimulationResult({
|
||||
status: 'indeterminate',
|
||||
@@ -565,7 +565,7 @@ test('indeterminate results require missing inputs and cannot carry a numeric va
|
||||
);
|
||||
});
|
||||
|
||||
test('estimated and not-applicable states must be explicit', () => {
|
||||
void test('estimated and not-applicable states must be explicit', () => {
|
||||
assert.deepEqual(
|
||||
validateSimulationResult({
|
||||
status: 'estimated',
|
||||
@@ -601,7 +601,7 @@ test('estimated and not-applicable states must be explicit', () => {
|
||||
);
|
||||
});
|
||||
|
||||
test('every tax component remains indeterminate until an approved effective rule exists', () => {
|
||||
void test('every tax component remains indeterminate until an approved effective rule exists', () => {
|
||||
assert.deepEqual(fiscalComponentCodes, [
|
||||
'IRPS',
|
||||
'INSS',
|
||||
|
||||
Reference in New Issue
Block a user