UNPKG

quoad

Version:

Serenity/JS: Next generation acceptance testing library for modern web applications.

20 lines (12 loc) 346 B
import { describe, it } from 'mocha'; describe('Mocha', () => { describe('A scenario', () => { let retries = 0; it('passes the third time', () => { if (retries++ < 2) { throw new Error(`Something's happened`); } // third time lucky, isn't it? }); }); });