UNPKG

451 BJavaScriptView Raw
1var tape = require('../');
2var tap = require('tap');
3
4tap.test('only twice error', function (assert) {
5 var test = tape.createHarness({ exit: false });
6
7 test.only('first only', function (t) {
8 t.end();
9 });
10
11 assert.throws(function () {
12 test.only('second only', function (t) {
13 t.end();
14 });
15 }, {
16 name: 'Error',
17 message: 'there can only be one only test'
18 });
19 assert.end();
20});