UNPKG

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