mock = (table) => {
    return mock.queryBuilder().table(table);
  }
@param {function} knex
   Knex instance to mock.

@param {function(object, function, Array)} mockExecutor
   The mock executor.

@returns {function}
   Mocked knex.