1 | ;
|
2 |
|
3 | var tape = require('../');
|
4 | var tap = require('tap');
|
5 |
|
6 | tap.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 | });
|