Skip to content

power-assert-js/karma-power-assert

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

58 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

karma-power-assert

npm version npm downloads

js-standard-style Standard Version

Build Status Dependency Status devDependency Status

Adapter for power-assert assertion library.

Installation

via npm

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

Instructions on how to install karma can be found here.

Configuration

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.

About

A Karma plugin. Adapter for power-assert assertion library.

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Contributors 3

  •  
  •  
  •