简体   繁体   中英

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

尝试这个:

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

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM