JSTQL-JS-Transform/output_testing/1089object-literal-method-call-in-ternary-test.js

16 lines
351 B
JavaScript
Raw Normal View History

import { createHookWrapper, identity, CONST_STRING0, CONST_STRING1 } from "shared-runtime";
function useHook({
value
}) {
return {
getValue() {
return value |> identity(%);
}
}.getValue() ? CONST_STRING0 : CONST_STRING1;
}
export const FIXTURE_ENTRYPOINT = {
fn: useHook |> createHookWrapper(%),
params: [{
value: 0
}]
};