1
0
mirror of https://github.com/kremalicious/metamask-extension.git synced 2024-11-29 07:16:36 +01:00
metamask-extension/ui/ducks/institutional/institutional.test.js

25 lines
637 B
JavaScript

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);
});
});
});