mirror of https://github.com/lukechilds/ava.git
You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
13 lines
200 B
13 lines
200 B
import test from '../../';
|
|
|
|
test.cb(t => {
|
|
Promise.resolve().then(() => {
|
|
t.throws(throwSync());
|
|
});
|
|
|
|
setTimeout(t.end, 20);
|
|
});
|
|
|
|
function throwSync() {
|
|
throw new Error('should be detected');
|
|
}
|
|
|