e0d291c49e
* Create util for apiLoadingStatus
* Revert "Fix #52 rubocop metrics abc size in passwords controller (#119)"
This reverts commit 9c22da0ac6
.
15 lines
447 B
JavaScript
15 lines
447 B
JavaScript
import { getLoadingStatus, setLoadingStatus } from '../api';
|
|
|
|
describe('#getLoadingStatus', () => {
|
|
it('returns correct status', () => {
|
|
expect(getLoadingStatus({ fetchAPIloadingStatus: true })).toBe(true);
|
|
});
|
|
});
|
|
|
|
describe('#setLoadingStatus', () => {
|
|
it('set correct status', () => {
|
|
const state = { fetchAPIloadingStatus: true };
|
|
setLoadingStatus(state, false);
|
|
expect(state.fetchAPIloadingStatus).toBe(false);
|
|
});
|
|
});
|