Is a special plugin or library required to use runs() and waits() with Jasmine? I checked the Jasmine wiki page for async tests at https://github.com/pivotal/jasmine/wiki/Asynchronous-specs, but there's no mention of needing additional libraries.
Based on this information, I assumed that runs() and waits() should work without any extra plugins.
Here is an excerpt from my code (enclosed in a describe block):
it('test', function() {
runs(function() {
});
});
However, when running the code, I encountered the error message:
ReferenceError: runs is not defined
The relevant segment of my karma configuration includes:
files: [
'bower_components/jquery/dist/jquery.min.js',
'bower_components/angular/angular.js',
'bower_components/angular-mocks/angular-mocks.js',
'src/*.js',
'test/*.spec.js'
],
frameworks: ['jasmine'],
browsers: ['PhantomJS'],
plugins: [
'karma-spec-reporter',
'karma-chrome-launcher',
'karma-firefox-launcher',
'karma-jasmine',
'karma-phantomjs-launcher'
],