12345678910111213141516171819202122 |
- 'use strict';
- 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();
- });
|