  hooks<span class="token punctuation">.</span><span class="token function">beforeEach</span><span class="token punctuation">(</span><span class="token keyword">function</span><span class="token punctuation">(</span><span class="token parameter">assert</span><span class="token punctuation">)</span> <span class="token punctuation">{</span>
    originalAlert <span class="token operator">=</span> window<span class="token punctuation">.</span>alert<span class="token punctuation">;</span> <span class="token comm