I am trying to use a karma runner with a mocha testing platform to test an application created with a closure library and corner symbols.
I always get namespace.Application is not defined
early.
here is my configuration file
basePath = ''; files = [ MOCHA, MOCHA_ADAPTER, {pattern: 'vendors/closure-library/closure/goog/base.js', watched: false, included: true, served: true}, {pattern: 'public/javascripts/deps.js', watched: true, included: true, served: true}, {pattern: 'node_modules/expect.js/expect.js', watched: false, included: true, served: true}, {pattern: 'public/javascripts/*.js', watched: true, included: false, served: true}, {pattern: 'tests/*.test.js', watched: true, included: true, served: true} ]; exclude = [ ]; reporters = ['progress']; port = 9876; runnerPort = 9100; colors = true; logLevel = LOG_INFO; autoWatch = true; browsers = ['Chrome', 'Firefox']; captureTimeout = 60000; singleRun = false;
and here is a simple test file
goog.require('namespace.Application'); describe('some sample', function() { it('should do something', function(done){ console.log('asdasd', reAdoptAHydrant); done(); }); });