import { describe, expect, it } from "vitest";
import { toDraft } from "../to-draft.js";
const testPlugin = (describeText, testValues) => {
  describe("To draft conversion", () => {
    describe(describeText, () => {
      it.each(testValues)("$type", ({ input, expectedOutput }) => {
        const convertedToDraft = toDraft(input);
        expect(convertedToDraft.blocks).toEqual(expectedOutput.blocks);
        expect(convertedToDraft.entityMap).toEqual(expectedOutput.entityMap);
        expect(convertedToDraft.documentStyle).toEqual(expectedOutput.documentStyle);
      });
    });
  });
};
export {
  testPlugin
};
//# sourceMappingURL=test-plugin.js.map
