11'use strict' ;
22
3- var tap = require ( " tap" ) ;
4- var forEach = require ( " for-each" ) ;
5- var tape = require ( " ../" ) ;
3+ var tap = require ( ' tap' ) ;
4+ var forEach = require ( ' for-each' ) ;
5+ var tape = require ( ' ../' ) ;
66var concat = require ( 'concat-stream' ) ;
77
8- tap . test ( " tape assert.end as callback" , function ( tt ) {
8+ tap . test ( ' tape assert.end as callback' , function ( tt ) {
99 var test = tape . createHarness ( { exit : false } ) ;
1010
1111 test . createStream ( ) . pipe ( concat ( function ( rows ) {
@@ -28,35 +28,35 @@ tap.test("tape assert.end as callback", function (tt) {
2828 tt . end ( ) ;
2929 } ) ) ;
3030
31- test ( " do a task and write" , function ( assert ) {
32- fakeAsyncTask ( " foo" , function ( err , value ) {
31+ test ( ' do a task and write' , function ( assert ) {
32+ fakeAsyncTask ( ' foo' , function ( err , value ) {
3333 assert . ifError ( err ) ;
34- assert . equal ( value , " taskfoo" ) ;
34+ assert . equal ( value , ' taskfoo' ) ;
3535
36- fakeAsyncWrite ( " bar" , assert . end ) ;
36+ fakeAsyncWrite ( ' bar' , assert . end ) ;
3737 } ) ;
3838 } ) ;
3939
40- test ( " do a task and write fail" , function ( assert ) {
41- fakeAsyncTask ( " bar" , function ( err , value ) {
40+ test ( ' do a task and write fail' , function ( assert ) {
41+ fakeAsyncTask ( ' bar' , function ( err , value ) {
4242 assert . ifError ( err ) ;
43- assert . equal ( value , " taskbar" ) ;
43+ assert . equal ( value , ' taskbar' ) ;
4444
45- fakeAsyncWriteFail ( " baz" , assert . end ) ;
45+ fakeAsyncWriteFail ( ' baz' , assert . end ) ;
4646 } ) ;
4747 } ) ;
4848} ) ;
4949
5050function fakeAsyncTask ( name , cb ) {
51- cb ( null , " task" + name ) ;
51+ cb ( null , ' task' + name ) ;
5252}
5353
5454function fakeAsyncWrite ( name , cb ) {
5555 cb ( null ) ;
5656}
5757
5858function fakeAsyncWriteFail ( name , cb ) {
59- cb ( new Error ( " fail" ) ) ;
59+ cb ( new Error ( ' fail' ) ) ;
6060}
6161
6262/**
0 commit comments