karma-tape
v0.0.1
Published
A Karma plugin. Adapter for Tape testing framework
Downloads
179
Maintainers
Readme
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
For more information on Karma see the homepage.