0.0.1 • Published 8 years ago

karma-tape v0.0.1

Weekly downloads
246
License
MIT
Repository
github
Last release
8 years ago

karma-tape

Adapter for the tape testing framework.

Installation

$ npm install karma-tape --save-dev

Configuration

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

    files: [
      'src/*.js',
      'test/*.js'
    ],

    reporters: ['spec'],
  })
}

Example

just write your tests without requiring tape

// var test = require('tape'); // no need to require tape

test('timing test', function (t) {
  t.plan(2);

  t.equal(typeof Date.now, 'function');
  var start = Date.now();

  setTimeout(function () {
      t.equal(Date.now() - start, 100);
  }, 100);
});

License

MIT


For more information on Karma see the homepage.