@@ -82,24 +82,24 @@ test('testing the test object', function (t) {
82
82
83
83
test ( 'plan stuff' , function ( t ) {
84
84
t . throws ( function ( ) {
85
- var tt = new Test ( )
85
+ var tt = new Test ( { buffered : false } )
86
86
tt . plan ( 1 )
87
87
tt . plan ( 1 )
88
88
} , new Error ( 'Cannot set plan more than once' ) )
89
89
t . throws ( function ( ) {
90
- var tt = new Test ( )
90
+ var tt = new Test ( { buffered : false } )
91
91
tt . plan ( 'foo' )
92
92
} , new TypeError ( 'plan must be a number' ) )
93
93
t . throws ( function ( ) {
94
- var tt = new Test ( )
94
+ var tt = new Test ( { buffered : false } )
95
95
tt . plan ( - 1 )
96
96
} , new TypeError ( 'plan must be a number' ) )
97
97
98
98
t . end ( )
99
99
} )
100
100
101
101
test ( 'do nothing after bailout' , function ( t ) {
102
- var tt = new Test ( )
102
+ var tt = new Test ( { buffered : false } )
103
103
var out = ''
104
104
tt . on ( 'data' , function ( c ) {
105
105
out += c
@@ -117,7 +117,7 @@ test('do nothing after bailout', function (t) {
117
117
} )
118
118
119
119
test ( 'subtest without arguments' , function ( t ) {
120
- var tt = new Test ( )
120
+ var tt = new Test ( { buffered : false } )
121
121
var out = ''
122
122
tt . on ( 'data' , function ( c ) {
123
123
out += c
@@ -131,7 +131,7 @@ test('subtest without arguments', function (t) {
131
131
} )
132
132
133
133
test ( 'subtest with only a name' , function ( t ) {
134
- var tt = new Test ( )
134
+ var tt = new Test ( { buffered : false } )
135
135
var out = ''
136
136
tt . on ( 'data' , function ( c ) {
137
137
out += c
@@ -145,7 +145,7 @@ test('subtest with only a name', function (t) {
145
145
} )
146
146
147
147
test ( 'subtest with only options' , function ( t ) {
148
- var tt = new Test ( )
148
+ var tt = new Test ( { buffered : false } )
149
149
var out = ''
150
150
tt . on ( 'data' , function ( c ) {
151
151
out += c
@@ -159,7 +159,7 @@ test('subtest with only options', function (t) {
159
159
} )
160
160
161
161
test ( 'subtest with only a function' , function ( t ) {
162
- var tt = new Test ( )
162
+ var tt = new Test ( { buffered : false } )
163
163
var out = ''
164
164
tt . on ( 'data' , function ( c ) {
165
165
out += c
@@ -173,7 +173,7 @@ test('subtest with only a function', function (t) {
173
173
} )
174
174
175
175
test ( 'subtest with name and options' , function ( t ) {
176
- var tt = new Test ( )
176
+ var tt = new Test ( { buffered : false } )
177
177
var out = ''
178
178
tt . on ( 'data' , function ( c ) {
179
179
out += c
@@ -187,7 +187,7 @@ test('subtest with name and options', function (t) {
187
187
} )
188
188
189
189
test ( 'subtest with name and function' , function ( t ) {
190
- var tt = new Test ( )
190
+ var tt = new Test ( { buffered : false } )
191
191
var out = ''
192
192
tt . on ( 'data' , function ( c ) {
193
193
out += c
@@ -201,7 +201,7 @@ test('subtest with name and function', function (t) {
201
201
} )
202
202
203
203
test ( 'subtest with options and function' , function ( t ) {
204
- var tt = new Test ( )
204
+ var tt = new Test ( { buffered : false } )
205
205
var out = ''
206
206
tt . on ( 'data' , function ( c ) {
207
207
out += c
@@ -216,7 +216,7 @@ test('subtest with options and function', function (t) {
216
216
217
217
test ( 'invalid test arguments' , function ( t ) {
218
218
t . throws ( function ( ) {
219
- var tt = new Test ( )
219
+ var tt = new Test ( { buffered : false } )
220
220
tt . test ( 'name' , { skip : false } , 'not a function' )
221
221
} , new TypeError ( 'test() callback must be function if provided' ) )
222
222
@@ -228,7 +228,7 @@ test('throws type', function (t) {
228
228
throw new TypeError ( 'some type error' ) ;
229
229
} , TypeError , 'should throw a TypeError' ) ;
230
230
231
- var tt = new Test ( )
231
+ var tt = new Test ( { buffered : false } )
232
232
t . notOk ( tt . throws ( function ( ) {
233
233
throw new RangeError ( 'x' )
234
234
} , TypeError ) )
0 commit comments