glint
glint copied to clipboard
Attempt to use Devin to solve #812
Ref #812 By Devin :upside_down_face:
of course there is no test. :see_no_evil:
seeing if it'll make one
With the fix removed, and just the test:
FAIL __tests__/transform/template-to-typescript.test.ts > Transform: rewriteTemplate > modifiers > in a conditional expression
Error: Snapshot `Transform: rewriteTemplate > modifiers > in a conditional expression 1` mismatched
- Expected
+ Received
- "__glintDSL__.emitContent(
__glintDSL__.resolveOrReturn(
(__glintDSL__.noop(__if),
__glintRef__.args.onSelect
? __glintDSL__.applyModifier(
__glintDSL__.resolve(__glintDSL__.Globals["on"])(
__glintY__.element,
"click",
__glintRef__.args.onSelect,
),
)
: null),
)(),
);
"
+ "__glintDSL__.emitContent(
__glintDSL__.resolveOrReturn(
(__glintDSL__.noop(__if),
__glintRef__.args.onSelect
? __glintDSL__.resolve(modifier)(
__glintDSL__.Globals["on"],
"click",
__glintRef__.args.onSelect,
)
: undefined),
)(),
);
"
So... now the question is: how close is this to being a correct test?
__glintDSL__.emitContent(
__glintDSL__.resolveOrReturn(
(__glintDSL__.noop(__if),
__glintRef__.args.onSelect
? __glintDSL__.applyModifier(
__glintDSL__.resolve(__glintDSL__.Globals["on"])(
__glintY__.element,
"click",
__glintRef__.args.onSelect,
),
)
: null),
)(),
);
Closing as this is slop