function runHook(item, prop) {
			if (typeof item === "object" && hasOwnProperty(item, prop)) {
				assert.strictEqual(
					typeof item[prop],
					"function",
					`Optional test case property '${prop}' must be a function`,
				);
				item[prop]();
			}
		}
Runs a hook on the given item when it's assigned to the given property
@param {string|Object} item Item to run the hook on
@param {string} prop The property having the hook assigned to
@throws {Error} If the property is not a function or that function throws an error
@returns {void}
@private