function assertIsTest(file, test, api) {
  let j = api.jscodeshift;

  let it = test.find(j.CallExpression, {callee: {name: 'it'}});

  if (it.length === 0) {
    let loc = test.get('loc').value;
    throw new Error(
      `Expected an it() call at ${file.path}:${loc.start.line}:${loc.start.column}`,
    );
  }
}
Asserts that the given node is a test call expression.