karma-requirejs icon indicating copy to clipboard operation
karma-requirejs copied to clipboard

Errors when test files start with letter and dash

Open webuniverseio opened this issue 10 years ago • 0 comments

Hi, thank you very much for requirejs support. Can you please check out my fork of karma-require example? If you'll run it you'll see that karma fails with following error:

Chrome 34.0.1797 (Windows) ERROR
        Uncaught TypeError: Cannot read property 'failedCount' of null
        at C:/Users/Sergey/AppData/Roaming/npm/node_modules/karma-jasmine/lib/adapter.js:126
Chrome 34.0.1797 (Windows) ERROR
        Uncaught TypeError: Cannot read property 'length' of null
        at C:/Users/Sergey/AppData/Roaming/npm/node_modules/karma-jasmine/lib/jasmine.js:2518
Chrome 34.0.1797 (Windows): Executed 1 of 2 ERROR (0.105 secs / 0 secs)

The only change which I made to your example was renaming test files to start with 't-' instead of end with 'Spec', appSpec.js -> t-app.js (I also adjusted that in config file and main-test.js).

webuniverseio avatar Jan 27 '14 02:01 webuniverseio