import { describe, expect, it } from "vitest";
import { fromDraft } from "../from-draft.js";
const testPlugin = (describeText, testValues) => {
  describe("From draft conversion", () => {
    describe(describeText, () => {
      it.each(testValues)("$type", ({ input, expectedOutput }) => {
        const convertedFromDraft = fromDraft(input);
        expect(convertedFromDraft.nodes).toEqual(expectedOutput.nodes);
        expect(convertedFromDraft.documentStyle).toEqual(expectedOutput.documentStyle);
      });
    });
  });
};
export {
  testPlugin
};
//# sourceMappingURL=test-plugin.js.map
