import Raiden from '../src';
import { of } from 'rxjs';
import { ajax } from 'rxjs/ajax';
import { AjaxCreationMethod } from 'rxjs/internal/observable/dom/AjaxObservable';
import Http from 'http-status-codes';

jest.mock('rxjs/ajax');

describe('payments', () => {
  describe('initiate', () => {
    it('should map snakecase to camelcase and vice-versa', () => {
      const ajaxMock = (ajax as unknown) as jest.Mock<AjaxCreationMethod>;
      ajaxMock.mockReturnValueOnce(of({
        response: mockChannels,
        status: Http.OK,
      }) as any);
    })
  });
});
