Skip to content

Open source AI coding agent. Designed for large projects and real world tasks.

338 B
Raw Blame
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);
  });
});