File tree 4 files changed +34
-0
lines changed
4 files changed +34
-0
lines changed Original file line number Diff line number Diff line change
1
+ var test = require ( '../../' ) ;
2
+ var path = require ( 'path' ) ;
3
+ var fs = require ( 'fs' ) ;
4
+ test . createStream ( { objectMode : true } ) . on ( 'data' , function ( row ) {
5
+ console . log ( JSON . stringify ( row ) )
6
+ } ) ;
7
+
8
+ process . argv . slice ( 2 ) . forEach ( function ( file ) {
9
+ require ( path . resolve ( file ) ) ;
10
+ } ) ;
Original file line number Diff line number Diff line change
1
+ var test = require ( '../../' ) ;
2
+ var path = require ( 'path' ) ;
3
+ var fs = require ( 'fs' ) ;
4
+ test . createStream ( ) . pipe ( process . stdout ) ;
5
+
6
+ process . argv . slice ( 2 ) . forEach ( function ( file ) {
7
+ require ( path . resolve ( file ) ) ;
8
+ } ) ;
Original file line number Diff line number Diff line change
1
+ var test = require ( '../../../' ) ;
2
+ test ( function ( t ) {
3
+ t . plan ( 1 ) ;
4
+ t . equal ( 'beep' , 'boop' ) ;
5
+ } ) ;
Original file line number Diff line number Diff line change
1
+ var test = require ( '../../../' ) ;
2
+ test ( function ( t ) {
3
+ t . plan ( 2 ) ;
4
+ t . equal ( 1 + 1 , 2 ) ;
5
+ t . ok ( true ) ;
6
+ } ) ;
7
+
8
+ test ( 'wheee' , function ( t ) {
9
+ t . ok ( true ) ;
10
+ t . end ( ) ;
11
+ } ) ;
You can’t perform that action at this time.
0 commit comments