Testing a component without events