nikku/karma-browserify

Cannot read property 'length' of undefined

scaljeri opened this issue · 2 comments

When I try to test my project I get the following error in the browser

 jasmine.js:796 Uncaught TypeError: Cannot read property 'length' of undefined

I've tried to tweak the preprocessors section of the karma conf

    preprocessors: {
        './di.js': ['coverage', 'browserify'],
        './tests/di.spec.js': ['browserify']
    },

but the end result is always the same
To run the test do:

$> git clone https://github.com/scaljeri/javascript-dependency-injection.git
$> npm install
$> gulp test

image

Any suggestion what might be the problem ?

nikku commented

Problem: You are missing a description as part of your spec:

describe('something', function() {
  // specs go here
});

How stupid, thanks for pointing that out!