(code: string)
| 3 | import { createPayload, createOutput, defaultParams } from "./_base"; |
| 4 | |
| 5 | function runMutation(code: string) { |
| 6 | const input = createPayload({ code, params: defaultParams, fileKey: "test" }); |
| 7 | const mutated = jsxAttributeMutation(input); |
| 8 | if (!mutated) return code; |
| 9 | return createOutput(mutated).code; |
| 10 | } |
| 11 | |
| 12 | describe("jsxAttributeMutation", () => { |
| 13 | it("should replace html element with localizable attributes with LingoAttributeComponent", () => { |
nothing calls this directly
no test coverage detected