lib/context.js
function validateLibOpts(libOptsRaw) {
  _chai.assert.ok(libOptsRaw, 'libOpts definition is required');
  var libName = libOptsRaw.libName;
  var validateContext = libOptsRaw.validateContext;
  var configureAppContext = libOptsRaw.configureAppContext;
  var configureInitialState = libOptsRaw.configureInitialState;

  (0, _chai.assert)(typeof libName === 'string', 'libName must be a string');
  (0, _chai.assert)(libName.length > 0, 'libName must not be empty');

  _chai.assert.ok(validateContext, 'validateContext must exist');
  (0, _chai.assert)(typeof validateContext === 'function', 'validateContext must be a function');

  _chai.assert.ok(configureAppContext, 'configureAppContext must exist');
  (0, _chai.assert)(typeof configureAppContext === 'function', 'configureAppContext must be a function');

  _chai.assert.ok(configureInitialState, 'configureInitialState must exist');
  (0, _chai.assert)(typeof configureInitialState === 'function', 'configureInitialState must be a function');
}
function validateLibOpts(libOptsRaw) {
  _chai.assert.ok(libOptsRaw, 'libOpts definition is required');
  var libName = libOptsRaw.libName;
  var validateContext = libOptsRaw.validateContext;
  var configureAppContext = libOptsRaw.configureAppContext;
  var configureInitialState = libOptsRaw.configureInitialState;

  (0, _chai.assert)(typeof libName === 'string', 'libName must be a string');
  (0, _chai.assert)(libName.length > 0, 'libName must not be empty');

  _chai.assert.ok(validateContext, 'validateContext must exist');
  (0, _chai.assert)(typeof validateContext === 'function', 'validateContext must be a function');

  _chai.assert.ok(configureAppContext, 'configureAppContext must exist');
  (0, _chai.assert)(typeof configureAppContext === 'function', 'configureAppContext must be a function');

  _chai.assert.ok(configureInitialState, 'configureInitialState must exist');
  (0, _chai.assert)(typeof configureInitialState === 'function', 'configureInitialState must be a function');
}
function validateLibOpts ( libOptsRaw ) { _chai . assert . ok ( libOptsRaw , 'libOpts definition is required' ) ; var libName = libOptsRaw . libName ; var validateContext = libOptsRaw . validateContext ; var configureAppContext = libOptsRaw . configureAppContext ; var configureInitialState = libOptsRaw . configureInitialState ; ( 0 , _chai . assert ) ( typeof libName === 'string' , 'libName must be a string' ) ; ( 0 , _chai . assert ) ( libName . length > 0 , 'libName must not be empty' ) ; _chai . assert . ok ( validateContext , 'validateContext must exist' ) ; ( 0 , _chai . assert ) ( typeof validateContext === 'function' , 'validateContext must be a function' ) ; _chai . assert . ok ( configureAppContext , 'configureAppContext must exist' ) ; ( 0 , _chai . assert ) ( typeof configureAppContext === 'function' , 'configureAppContext must be a function' ) ; _chai . assert . ok ( configureInitialState , 'configureInitialState must exist' ) ; ( 0 , _chai . assert ) ( typeof configureInitialState === 'function' , 'configureInitialState must be a function' ) ; }
Validates library creators options
Validates library creators options