Open source AI coding agent. Designed for large projects and real world tasks.
Go aiai-agentsai-developer-toolsai-toolsclicommand-linedeveloper-toolsgitgolanggpt-4llmopenaipolyglot-programmingterminalterminal-basedterminal-ui
import { myAction, MY_ACTION_TYPE } from '../action';
describe('myAction', () => {
it('creates an action with the correct type and payload', () => {
const payload = {}; // Define payload
const expectedAction = {
type: MY_ACTION_TYPE,
payload,
};
expect(myAction(payload)).toEqual(expectedAction);
});
});