blob: 488e49ba6432a163a580de9e5c678245bee57082 [file] [log] [blame]
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();
});