src/adapter.js
function createStartFn (karma, jasmineEnv) {


  function setOption (option, set) {
    if (option != null) {
      set(option)
    }
  }

  // This function will be assigned to `window.__karma__.start`:
  return function () {

    console.log('suman started.');
    window.__suman.tsrq.resume();
    // var clientConfig = karma.config || {}
    // var jasmineConfig = clientConfig.jasmine || {}
    //
    // jasmineEnv = jasmineEnv || window.jasmine.getEnv()
    //
    // setOption(jasmineConfig.stopOnFailure, jasmineEnv.throwOnExpectationFailure)
    // setOption(jasmineConfig.seed, jasmineEnv.seed)
    // setOption(jasmineConfig.random, jasmineEnv.randomizeTests)
    //
    // jasmineEnv.addReporter(new KarmaReporter(karma, jasmineEnv))
    // jasmineEnv.execute()
  }


}
function createStartFn (karma, jasmineEnv) {


  function setOption (option, set) {
    if (option != null) {
      set(option)
    }
  }

  // This function will be assigned to `window.__karma__.start`:
  return function () {

    console.log('suman started.');
    window.__suman.tsrq.resume();
    // var clientConfig = karma.config || {}
    // var jasmineConfig = clientConfig.jasmine || {}
    //
    // jasmineEnv = jasmineEnv || window.jasmine.getEnv()
    //
    // setOption(jasmineConfig.stopOnFailure, jasmineEnv.throwOnExpectationFailure)
    // setOption(jasmineConfig.seed, jasmineEnv.seed)
    // setOption(jasmineConfig.random, jasmineEnv.randomizeTests)
    //
    // jasmineEnv.addReporter(new KarmaReporter(karma, jasmineEnv))
    // jasmineEnv.execute()
  }


}
function createStartFn ( karma , jasmineEnv ) { function setOption ( option , set ) { if ( option != null ) { set ( option ) } } // This function will be assigned to `window.__karma__.start`: return function ( ) { console . log ( 'suman started.' ) ; window . __suman . tsrq . resume ( ) ; // var clientConfig = karma.config || {} // var jasmineConfig = clientConfig.jasmine || {} // // jasmineEnv = jasmineEnv || window.jasmine.getEnv() // // setOption(jasmineConfig.stopOnFailure, jasmineEnv.throwOnExpectationFailure) // setOption(jasmineConfig.seed, jasmineEnv.seed) // setOption(jasmineConfig.random, jasmineEnv.randomizeTests) // // jasmineEnv.addReporter(new KarmaReporter(karma, jasmineEnv)) // jasmineEnv.execute() } }
Karma starter function factory.

This function is invoked from the wrapper.
@see  adapter.wrapper

@param  {Object}   karma        Karma runner instance.
@param  {Object}   [jasmineEnv] Optional Jasmine environment for testing.
@return {Function}              Karma starter function.
Karma starter function factory .