EmmaRamirez/Clickopolis

View on GitHub
src/actions/__tests__/clickFoodButton.spec.ts

Summary

Maintainability
A
0 mins
Test Coverage
import { clickFoodButton } from '../clickFoodButton';

describe('clickFoodButton action', () => {
  it('should return an amount', () => {
    const amount = 1;
    const expectedAction = {
      type: 'CLICK_FOOD_BUTTON',
      amount
    };
    expect(clickFoodButton(amount)).toEqual(expectedAction);
  });
});