Important: This documentation covers Yarn 1 (Classic).
For Yarn 2+ docs and migration guide, see yarnpkg.com.

Package detail

karma-power-assert

power-assert-js275MIT1.0.0

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

karma, karma-plugin, karma-adapter, power-assert

readme

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.

changelog

Change Log

All notable changes to this project will be documented in this file. See standard-version for commit guidelines.

1.0.0 (2017-01-09)

Bug Fixes

  • package.json: replace the old org name with new one (9f6aebf)

0.0.5 (2017-01-05)

Bug Fixes

  • deps: fix error on ci (dce561d)
  • npm script: rename prepublish to prerelease (8757950)
  • npm-script: add prepublish script (ce0abd8)
  • readme: add espower to example codes (e7fb30e)
  • readme: add standard-version badge (f3a0c40)
  • travis: add before_scripts to launch firefox (a0d8693)
  • travis: drop v0.12 and iojs (0460515)

0.0.4 (2016-08-01)

Bug Fixes

  • deps: update karma-mocha, rimraf, standard, standard-version and uglify-js (8cfd3af)

  • deps: update mocha (64aa9b)

0.0.3 (2016-05-14)

Bug Fixes

  • readme: add espower to example codes (e7fb30e)

0.0.2 (2016-05-14)

Bug Fixes

  • deps: fix error on ci (dce561d)
  • npm script: rename prepublish to prerelease (8757950)
  • npm-script: add prepublish script (ce0abd8)
  • readme: add standard-version badge (f3a0c40)
  • travis: add before_scripts to launch firefox (a0d8693)

0.0.1 (2016-05-14)

first release