"use strict";
var __importDefault = (this && this.__importDefault) || function (mod) {
    return (mod && mod.__esModule) ? mod : { "default": mod };
};
Object.defineProperty(exports, "__esModule", { value: true });
exports.datasetType_available = void 0;
const vitest_1 = require("vitest");
const react_1 = __importDefault(require("react"));
const react_2 = require("@testing-library/react");
const CountToggle_1 = require("../CountToggle");
require("@testing-library/jest-dom/extend-expect");
exports.datasetType_available = [
    { label: 'All Public', value: 'All Public' },
    { label: 'Following', value: 'Following' },
    { label: 'My Datasets', value: 'My Datasets' },
    { label: 'My Bookmarks', value: 'My Bookmarks' },
];
describe('CountToggle component', () => {
    it('calls toggleClick on toggle', () => {
        const toggleClick = vitest_1.vi.fn();
        const clicked = false;
        const count = 3;
        (0, react_2.render)(react_1.default.createElement(CountToggle_1.CountToggle, { label: "count toggle test", icon: "fa-thumbtack", toggleClick: toggleClick, tooltip: "test tip", clicked: clicked, count: count }));
        react_2.fireEvent.click(react_2.screen.getByText('count toggle test'));
        expect(toggleClick).toHaveBeenCalledTimes(1);
    });
});
