CH8 / E46|Testing the DOM|Mon, 12 Nov ’12
Clean Up the DOM
We start our second DOM test, which exposes a surprise: Unlike JsTestDriver, Testacular doesn’t clean up the DOM for us between test runs. We introduce an afterEach() function to take care of the problem, then turn our attention to ensuring the Raphaël canvas is the correct size.