Mohamad Sidani
Mohamad Sidani

Reputation: 11

Why am I getting this error when calling the method jasmine.Ajax.install()?

Installed:

  npm install karma-jasmine-ajax --save-dev

Method call:

  beforeEach(function() {
      jasmine.Ajax.install();
  });

In package.json:

  Karma Version: "0.12.37"
  karma-jasmine-ajax Version: "0.1.13"

In karma.config.js:

  frameworks: ['jasmine-ajax', 'jasmine'],
  plugins: [karma-jasmine-ajax]

Karma config file is configured properly, however, I'm getting this error

Upvotes: 1

Views: 330

Answers (1)

George Campbell
George Campbell

Reputation: 576

Try this:

frameworks: ['jasmine', 'jasmine-ajax']

Upvotes: 0

Related Questions