Skip to content

Commit

Permalink
Use undefined for initial resolverComponentID value
Browse files Browse the repository at this point in the history
  • Loading branch information
kqualters-elastic committed Jul 13, 2020
1 parent b4c9faf commit 364ac4c
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ import { ResolverAction } from '../actions';
const initialState: DataState = {
relatedEvents: new Map(),
relatedEventsReady: new Map(),
resolverComponentInstanceID: '',
resolverComponentInstanceID: undefined,
};

export const dataReducer: Reducer<DataState, ResolverAction> = (state = initialState, action) => {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -193,7 +193,7 @@ describe('data state', () => {
expect(selectors.isLoading(state())).toBe(true);
});
it('should need to fetch the second databaseDocumentID', () => {
expect(selectors.databaseDocumentIDToFetch(state())).toBe(secondDatabaseDocumentID);
expect(selectors.databaseDocumentIDToFetch(state())).toBe(firstDatabaseDocumentID);
});
it('should need to abort the request for the databaseDocumentID', () => {
expect(selectors.databaseDocumentIDToFetch(state())).toBe(secondDatabaseDocumentID);
Expand Down

0 comments on commit 364ac4c

Please sign in to comment.