mirror of
https://github.com/kremalicious/metamask-extension.git
synced 2024-11-22 18:00:18 +01:00
25 lines
637 B
JavaScript
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);
|
|
});
|
|
});
|
|
});
|