"use strict";

var _interopRequireDefault = require("@babel/runtime/helpers/interopRequireDefault");
Object.defineProperty(exports, "__esModule", {
  value: true
});
exports.describeHijriAdapter = void 0;
var _extends2 = _interopRequireDefault(require("@babel/runtime/helpers/extends"));
var _createDescribe = _interopRequireDefault(require("@mui/monorepo/test/utils/createDescribe"));
var _testCalculations = require("./testCalculations");
var _testLocalization = require("./testLocalization");
function innerJalaliDescribeAdapter(Adapter, params) {
  const adapter = new Adapter();
  describe(adapter.lib, () => {
    const testSuitParams = (0, _extends2.default)({}, params, {
      adapter
    });
    if (params.before) {
      before(params.before);
    }
    if (params.after) {
      after(params.after);
    }
    (0, _testCalculations.testCalculations)(testSuitParams);
    (0, _testLocalization.testLocalization)(testSuitParams);
  });
}
const describeHijriAdapter = (0, _createDescribe.default)('Adapter methods', innerJalaliDescribeAdapter);
exports.describeHijriAdapter = describeHijriAdapter;