A RetroSearch Logo

Home - News ( United States | United Kingdom | Italy | Germany ) - Football scores

Search Query:

Showing content from https://github.com/power-assert-js/karma-power-assert below:

power-assert-js/karma-power-assert: A Karma plugin. Adapter for power-assert assertion library.

Adapter for power-assert assertion library.

via npm

$ npm install karma-power-assert --save-dev

Instructions on how to install karma can be found here.

Following code shows the default configuration...

// karma.conf.js
module.exports = function(config) {
  config.set({
    frameworks: ['mocha', 'power-assert'],

    files: [
      '*.js'
    ],

    preprocessors: {
      'test/**/*.spec.js': ['espower']
    }
  });
};

If you want to pass configuration options directly to assert.customize you can do this in the following way

// karma.conf.js
module.exports = function(config) {
  config.set({
    frameworks: ['mocha', 'power-assert'],

    files: [
      '*.js'
    ],

    preprocessors: {
      'test/**/*.spec.js': ['espower']
    },

    client: {
      assert: {
        output: {
          maxDepth: 2
        }
      }
    }
  });
};

For more information on Karma see the homepage.


RetroSearch is an open source project built by @garambo | Open a GitHub Issue

Search and Browse the WWW like it's 1997 | Search results from DuckDuckGo

HTML: 3.2 | Encoding: UTF-8 | Version: 0.7.4