blob: ddb536735e4a79994e0a139d0c30a30baf1a3491 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
|
'use strict';
describe('Multiple Done calls', function () {
it('should report an error if done was called more than once', function (done) {
done();
done();
});
it('should report an error if an exception happened async after done was called', function (done) {
done();
setTimeout(done, 50);
});
it('should report an error if an exception happened after done was called', function (done) {
done();
throw new Error('thrown error');
});
});
|