Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.
it('up', function* () {
promise.consume(_testShiftUp, null, 'k');
});
it('delete bound', function* () {
promise.consume(_deleteBound, null, 'd');
});
it('paste into bound by p', function* () {
promise.consume(_pasteIntoBound, null, 'p');
});
it('right', function* () {
promise.consume(_testRight, null, 'l');
});
it('down ctrl n', function* () {
promise.consume(_testShiftDown, null, ctrln);
});
it('paste into bound linewise by p', function* () {
promise.consume(_pasteLinewiseDataIntoBound, null, 'p');
});
it('yank line bound y', function* () {
promise.consume(_yankLineBound, null, 'Y');
});
it('change line bound', function* () {
promise.consume(_changeLineBound, null, 'c');
});
const runTest = (resolve, reject) => {
try {
if (isAsync) {
fn.call(this, err => err ? reject(err) : resolve());
} else if (isGenerator) {
resolve(promise.consume(fn, this));
} else {
resolve(fn.call(this));
}
} catch (ex) {
reject(ex);
}
};