import { Assertions, Step } from '@ephox/agar';
import { Obj } from '@ephox/katamari';
import { Representing } from 'ephox/alloy/api/behaviour/Representing';
const helper = (component) => {
    const sAssertRep = (expected) => Step.sync(() => {
        const val = Representing.getValue(component);
        Assertions.assertEq('Checking form value', expected, Obj.map(val, (v, k) => v.getOrDie(k + ' field is "None"')));
    });
    const sSetRep = (newValues) => Step.sync(() => {
        Representing.setValue(component, newValues);
    });
    return {
        sAssertRep,
        sSetRep
    };
};
export { helper };
//# sourceMappingURL=TestForm.js.map