diff --git a/tests/flipper.test.mjs b/tests/flipper.test.mjs index 5c86e8a..cca54e7 100644 --- a/tests/flipper.test.mjs +++ b/tests/flipper.test.mjs @@ -336,8 +336,7 @@ test('il disegno del flipper non cambia lo stato; il tabellone dice l\'esito giu const x = (r.mouth[0][0] + r.mouth[1][0]) / 2; assert.ok(calls.some(([op, line, tx, ty]) => op === 'fillText' && line === 'RAMPA' && tx === x && ty > r.mouth[0][1]), 'la targhetta indica l\'imbocco dal basso'); } - assert.ok(calls.some(([op, line]) => op === 'fillText' && line === 'OBIETTIVO 60.000')); - assert.ok(calls.some(([op, line]) => op === 'fillText' && line === 'MANCANO 60.000')); + assert.ok(calls.some(([op, line]) => op === 'fillText' && line === 'MANCANO 60.000'), 'quanto manca al traguardo, nella riga in basso'); assert.ok(existsSync(new URL('../' + story.closeups.flipper.backglass, import.meta.url)), 'il fondale del tabellone esiste'); const glass = {}; drawFlipper(ctx, c, story.closeups.flipper, bg, glass); assert.ok(calls.some(([op, img, x, y, w, h]) => op === 'drawImage' && img === glass && w === 200 && h === 360), 'il fondale sul fianco'); m.launch(c, 0.8); run(c, 1); calls.length = 0; draw();