async function assertMergedResult(values, result) {
	const configs = createFlatConfigArray(values);

	await configs.normalize();

	const config = configs.getConfig("foo.js");

	if (!result.language) {
		result.language = jslang;
	}

	if (!result.languageOptions) {
		result.languageOptions = jslang.normalizeLanguageOptions(
			jslang.defaultLanguageOptions,
		);
	}

	assert.deepStrictEqual(config, result);
}
Asserts that a given set of configs will be merged into the given
result config.
@param {*[]} values An array of configs to use in the config array.
@param {Object} result The expected merged result of the configs.
@returns {void}
@throws {AssertionError} If the actual result doesn't match the
     expected result.