A wife who was alleged to have smashed her husband's laptop on his head while he was 'partially naked' in the shower has been sentenced to a community order by a court.