Hacker News new | ask | show | jobs
by 9rx 362 days ago
Same way you normally would? Tests are concerned with behaviour. The code that implements the behaviour is immaterial.