import * as actions from '../actions';
import * as types from '../constants';

describe('Gallery actions', () => {
  describe('uploadAsset', () => {
    test.concurrent('has a type of UPLOAD_ASSET_REQUEST', () => {
      const expected = {
        type: types.UPLOAD_ASSET_REQUEST,
        file: 'test',
        assetType: 'IMAGE',
      };
      expect(actions.uploadAsset('test', 'IMAGE')).toEqual(expected);
    });
  });

  describe('getAllAssets', () => {
    test.concurrent('has a type of GET_ALL_ASSETS_REQUEST', () => {
      const expected = {
        type: types.GET_ALL_ASSETS_REQUEST,
        assetType: 'IMAGE',
      };
      expect(actions.getAllAssets('IMAGE')).toEqual(expected);
    });
  });
});
