Extract a new configFuncSettingsFrom() function
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.
Showing
Please register or sign in to comment