"use strict";
var __importDefault = (this && this.__importDefault) || function (mod) {
    return (mod && mod.__esModule) ? mod : { "default": mod };
};
Object.defineProperty(exports, "__esModule", { value: true });
const jsx_runtime_1 = require("react/jsx-runtime");
const A_1 = __importDefault(require("./A"));
const react_test_renderer_1 = __importDefault(require("react-test-renderer"));
test("some basic properites of A are correct so will open a new tab at right url", () => {
    const component = react_test_renderer_1.default.create((0, jsx_runtime_1.jsx)(A_1.default, { href: "https://cocalc.com", children: "CoCalc" }));
    let tree = component.toJSON();
    expect(tree.type).toBe("a");
    expect(tree.props.target).toBe("_blank");
    expect(tree.props.href).toBe("https://cocalc.com");
    expect(tree.props.rel).toBe("noopener");
    expect(tree.children).toEqual(["CoCalc"]);
});
//# sourceMappingURL=A.test.js.map