"use strict";
Object.defineProperty(exports, "__esModule", { value: true });
/**
 * @jest-environment jsdom
 */
require("../__tests__/test-helpers/setup");
const react_1 = require("@testing-library/react");
const _1 = require(".");
// Explicitly mock the featureFlags module
describe("useGroupedCurrenciesByProvider", () => {
    afterEach(() => {
        jest.clearAllMocks();
    });
    it("should list is starting with Bitcoin", async () => {
        const { result } = (0, react_1.renderHook)(() => (0, _1.useGroupedCurrenciesByProvider)(false));
        await (0, react_1.waitFor)(() => expect(result.current.sortedCryptoCurrencies.slice(0, 1).map(o => o.id)).toMatchObject(["bitcoin"]));
    });
    it("should list is starting with Bitcoin when withLoading is activated", async () => {
        const { result: hookRef } = (0, react_1.renderHook)(() => (0, _1.useGroupedCurrenciesByProvider)(true));
        await (0, react_1.waitFor)(() => expect(hookRef.current.result.sortedCryptoCurrencies
            .slice(0, 1)
            .map(o => o.id)).toMatchObject(["bitcoin"]));
    });
});
//# sourceMappingURL=deposit.integration.test.js.map