UNPKG

@zkochan/pnpm

Version:

A fast implementation of npm install

22 lines (17 loc) 410 B
var tape = require('../'); var tap = require('tap'); tap.test('only twice error', function (assert) { var test = tape.createHarness({ exit : false }); test.only("first only", function (t) { t.end() }); assert.throws(function() { test.only('second only', function(t) { t.end(); }); }, { name: 'Error', message: 'there can only be one only test' }); assert.end(); });