• Robert Knight's avatar
    Refactor `createStore` helpers · 39ef7f40
    Robert Knight authored
    Move helper functions used only by `createStore` into `create-store.js` and
    test the functionality as part of the `createStore` tests rather than having
    direct tests for the helpers.
    
    This refactoring decouples the tests for `createStore` from implementation
    details. Having a single module for `createStore` and its tests should also
    make it easier for a new developer to grok it.
    
     - Move `createReducer` and `bindSelectors` from util.js into create-store.js and
       refactor `bindSelectors`
    
     - Remove dedicated tests for these helpers and instead test the functionality
       via tests for `createStore`.
    
     - Remove check for `namespace` property of modules, as the types for the
       `createStoreModule` function now enforce the presence of this property.
    
     - Remove checks for conflicting selectors. These will be re-added in a
       subsequent commit.
    39ef7f40
Name
Last commit
Last update
..
components Loading commit data...
config Loading commit data...
helpers Loading commit data...
services Loading commit data...
store Loading commit data...
test Loading commit data...
util Loading commit data...
cross-origin-rpc.js Loading commit data...
icons.js Loading commit data...
index.js Loading commit data...
markdown-commands.js Loading commit data...
media-embedder.js Loading commit data...
render-markdown.js Loading commit data...
search-client.js Loading commit data...
service-context.js Loading commit data...
websocket.js Loading commit data...