• Sean Hammond's avatar
    Extract a new configFuncSettingsFrom() function · 1371efec
    Sean Hammond authored
    Extract some code for reading config settings from a
    window.hypothesisConfig() function out of
    annotator.config.config#configFrom() and into a new, separate function
    annotator.config.settings#configFuncSettingsFrom().
    
    This function can now be unit-tested separately and the long
    configFrom() function gets a bit shorter.
    1371efec
index-test.js 8.08 KB