import _extends from "@babel/runtime/helpers/esm/extends";
import createDescribe from '@mui/monorepo/test/utils/createDescribe';
import { testCalculations } from './testCalculations';
import { testLocalization } from './testLocalization';
function innerJalaliDescribeAdapter(Adapter, params) {
  const adapter = new Adapter();
  describe(adapter.lib, () => {
    const testSuitParams = _extends({}, params, {
      adapter
    });
    if (params.before) {
      before(params.before);
    }
    if (params.after) {
      after(params.after);
    }
    testCalculations(testSuitParams);
    testLocalization(testSuitParams);
  });
}
export const describeHijriAdapter = createDescribe('Adapter methods', innerJalaliDescribeAdapter);