The only way to be certain of proper function is to have a load on the outputs (10-100 ohm resistor or similar) and apply all combinations of high and low to the inputs. Check the results against the truth table in the L298 data sheet.
Just about any motor driver can be destroyed instantly, by disconnecting the motor leads while it is powered up.
I’d rather test it with a 24 volt lightbulb than a resistor. You should be able to measure the voltage across the resistor with a multimeter, and that would indicate current flow and proper operation if the driver. But a light bulb would show it more directly.