@@ -7,7 +7,7 @@ import {
|
||||
simulationCatalogChoices,
|
||||
} from '../../resources/js/lib/simulation-api.ts';
|
||||
|
||||
test('malformed and non-JSON API bodies do not leak parser exceptions', async () => {
|
||||
void test('malformed and non-JSON API bodies do not leak parser exceptions', async () => {
|
||||
assert.equal(
|
||||
await readSimulationApiJson(
|
||||
new Response('<html>gateway error</html>', {
|
||||
@@ -28,7 +28,7 @@ test('malformed and non-JSON API bodies do not leak parser exceptions', async ()
|
||||
);
|
||||
});
|
||||
|
||||
test('API error messages prefer validated field details and reject malformed shapes', () => {
|
||||
void test('API error messages prefer validated field details and reject malformed shapes', () => {
|
||||
assert.equal(
|
||||
simulationApiErrorMessage({
|
||||
message: 'Validation failed',
|
||||
@@ -47,7 +47,7 @@ test('API error messages prefer validated field details and reject malformed sha
|
||||
assert.equal(simulationApiErrorMessage('<html>error</html>'), undefined);
|
||||
});
|
||||
|
||||
test('polling failures explain that an accepted calculation may still be pending', () => {
|
||||
void test('polling failures explain that an accepted calculation may still be pending', () => {
|
||||
assert.equal(
|
||||
simulationPollingFailureMessage(null),
|
||||
'O cenário foi recebido, mas não foi possível confirmar o estado do cálculo. Consulte o histórico antes de tentar novamente.',
|
||||
@@ -58,7 +58,7 @@ test('polling failures explain that an accepted calculation may still be pending
|
||||
);
|
||||
});
|
||||
|
||||
test('catalog parser distinguishes a valid empty list and filters malformed options', () => {
|
||||
void test('catalog parser distinguishes a valid empty list and filters malformed options', () => {
|
||||
assert.deepEqual(simulationCatalogChoices({ data: [] }), []);
|
||||
assert.deepEqual(
|
||||
simulationCatalogChoices({
|
||||
|
||||
Reference in New Issue
Block a user