|
@@ -19,6 +19,7 @@ describe('Connect selectors', () => {
|
|
|
false
|
|
|
);
|
|
|
expect(selectors.getConnectors(store.getState())).toEqual([]);
|
|
|
+ expect(selectors.getFailedConnectors(store.getState())).toEqual([]);
|
|
|
expect(selectors.getIsConnectorFetching(store.getState())).toEqual(false);
|
|
|
expect(selectors.getConnector(store.getState())).toEqual(null);
|
|
|
expect(selectors.getConnectorStatus(store.getState())).toEqual(undefined);
|
|
@@ -65,6 +66,14 @@ describe('Connect selectors', () => {
|
|
|
expect(selectors.getConnectors(store.getState())).toEqual(connectors);
|
|
|
});
|
|
|
|
|
|
+ it('returns failed connectors', () => {
|
|
|
+ store.dispatch({
|
|
|
+ type: fetchConnectors.fulfilled.type,
|
|
|
+ payload: { connectors },
|
|
|
+ });
|
|
|
+ expect(selectors.getFailedConnectors(store.getState()).length).toEqual(1);
|
|
|
+ });
|
|
|
+
|
|
|
it('returns connector', () => {
|
|
|
store.dispatch({
|
|
|
type: fetchConnector.fulfilled.type,
|