function checkText(actual, expected) {
	return typeof expected === "string"
		? actual === expected
		: expected.test(actual);
}
Check if the `actual` is an expected value.
@param {string} actual The string value to check.
@param {string | RegExp} expected The expected string value or pattern.
@returns {boolean} `true` if the `actual` is an expected value.