import { formatQuery } from '../../formatting/formatting';
import { standardizeQuery } from '../../formatting/standardizer';
export function verifyFormatting(query, expected, formattingOptions) {
    const formatted = formatQuery(query, formattingOptions).formattedQuery;
    expect(formatted).toEqual(expected);
    const queryStandardized = standardizeQuery(query);
    const formattedStandardized = standardizeQuery(formatted);
    if (formattedStandardized !== queryStandardized) {
        throw new Error(`Standardized query does not match standardized formatted query`);
    }
    // Idempotency check
    const formattedTwice = formatQuery(query, formattingOptions).formattedQuery;
    expect(formattedTwice).toEqual(formatted);
}
//# sourceMappingURL=testutil.js.map