Skip to content

Commit

Permalink
Mock more api calls
Browse files Browse the repository at this point in the history
  • Loading branch information
sauntimo committed Nov 11, 2024
1 parent 55ea680 commit d2c39bd
Showing 1 changed file with 14 additions and 0 deletions.
14 changes: 14 additions & 0 deletions tests/client/containers/Users/Users.tests.js
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,8 @@ import { expect } from 'chai';
import { describe, it } from 'mocha';
import { fromJS } from 'immutable';
import { Router, Route, createMemoryHistory } from 'react-router';
import MockAdapter from 'axios-mock-adapter';
import axios from 'axios'

import fakeStore from '../../../utils/fakeStore';

Expand All @@ -26,6 +28,18 @@ class UsersWrapper extends Component {
}

describe('#Client-Containers-Users-Users', () => {
let stub;

before(() => {
// mock api calls
stub = new MockAdapter(axios);
stub.onGet('/api/connections').reply(200, {});
});

after(() => {
stub.restore();
});


const renderComponent = (languageDictionary, settings = {}) => {
const initialState = {
Expand Down

0 comments on commit d2c39bd

Please sign in to comment.