1
0
mirror of https://github.com/kremalicious/metamask-extension.git synced 2024-11-25 11:28:51 +01:00
metamask-extension/ui/ducks/institutional/institutional.test.js

25 lines
637 B
JavaScript
Raw Normal View History

import InstitutionalReducer, {
getInstitutionalConnectRequests,
} from './institutional';
describe('Institutional Duck', () => {
const initState = {};
describe('InstitutionalReducer', () => {
it('should initialize state', () => {
expect(InstitutionalReducer(undefined, {})).toStrictEqual(initState);
});
it('should correctly return all getters values', async () => {
const state = {
metamask: {
institutionalFeatures: {
connectRequests: [{ id: 'id' }],
},
},
};
expect(getInstitutionalConnectRequests(state)).toHaveLength(1);
});
});
});