@@ -73,7 +73,7 @@ tape( 'the function throws an error if provided a first argument which is not a
73
73
function badValue ( value ) {
74
74
return function badValue ( ) {
75
75
var f = new Unary ( value , DTYPES , DTYPES , 'same' ) ;
76
- if ( typeof f !== 'function' ) {
76
+ if ( ! ( f instanceof Unary ) ) {
77
77
t . fail ( 'unexpected return value' ) ;
78
78
}
79
79
} ;
@@ -105,7 +105,7 @@ tape( 'the function throws an error if provided a second argument which is not a
105
105
function badValue ( value ) {
106
106
return function badValue ( ) {
107
107
var f = new Unary ( abs , value , DTYPES , 'same' ) ;
108
- if ( typeof f !== 'function' ) {
108
+ if ( ! ( f instanceof Unary ) ) {
109
109
t . fail ( 'unexpected return value' ) ;
110
110
}
111
111
} ;
@@ -137,7 +137,7 @@ tape( 'the function throws an error if provided a third argument which is not a
137
137
function badValue ( value ) {
138
138
return function badValue ( ) {
139
139
var f = new Unary ( abs , DTYPES , value , 'same' ) ;
140
- if ( typeof f !== 'function' ) {
140
+ if ( ! ( f instanceof Unary ) ) {
141
141
t . fail ( 'unexpected return value' ) ;
142
142
}
143
143
} ;
@@ -170,7 +170,7 @@ tape( 'the function throws an error if provided a fourth argument which is not a
170
170
function badValue ( value ) {
171
171
return function badValue ( ) {
172
172
var f = new Unary ( abs , DTYPES , DTYPES , value ) ;
173
- if ( typeof f !== 'function' ) {
173
+ if ( ! ( f instanceof Unary ) ) {
174
174
t . fail ( 'unexpected return value' ) ;
175
175
}
176
176
} ;
0 commit comments