@@ -60,6 +60,9 @@ test('browser resolve - missing', function (t) {
60
60
61
61
d . end ( { id : 'missing' , file : missing , entry : true } ) ;
62
62
63
+ d . on ( 'end' , function ( ) {
64
+ t . fail ( 'errored' ) ;
65
+ } ) ;
63
66
d . on ( 'error' , function ( err ) {
64
67
t . match (
65
68
String ( err ) ,
@@ -74,6 +77,9 @@ test('node resolve - missing', function (t) {
74
77
75
78
d . end ( { id : 'missing' , file : missing , entry : true } ) ;
76
79
80
+ d . on ( 'end' , function ( ) {
81
+ t . fail ( 'errored' ) ;
82
+ } ) ;
77
83
d . on ( 'error' , function ( err ) {
78
84
t . match (
79
85
String ( err ) ,
@@ -93,8 +99,7 @@ test('browser resolve', function (t) {
93
99
d . on ( 'end' , function ( ) {
94
100
t . same ( rows , expectedRows ) ;
95
101
} ) ;
96
-
97
- d . on ( 'error' , function ( err ) {
102
+ d . on ( 'error' , function ( ) {
98
103
t . fail ( 'errored' ) ;
99
104
} ) ;
100
105
} ) ;
@@ -110,8 +115,7 @@ test('node resolve', function (t) {
110
115
d . on ( 'end' , function ( ) {
111
116
t . same ( rows , expectedRows ) ;
112
117
} ) ;
113
-
114
- d . on ( 'error' , function ( err ) {
118
+ d . on ( 'error' , function ( ) {
115
119
t . fail ( 'errored' ) ;
116
120
} ) ;
117
121
} ) ;
0 commit comments