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.

19 lines
320 B

import test from '../../';
test.beforeEach(t => {
t.context = 'bar';
});
test.cb('callback mode', ({context: foo, ...t}) => {
t.is(foo, 'bar');
t.end();
});
test.cb('callback mode #2', ({context: foo, end, ...t}) => {
t.is(foo, 'bar');
end();
});
test('sync', ({context: foo, ...t}) => {
t.is(foo, 'bar');
});